changeset: 106130:0503024831ad parent: 106126:7bd9ec6e5da4 parent: 106129:17ca7c4dd583 user: Serhiy Storchaka date: Fri Jan 13 09:44:00 2017 +0200 files: Misc/NEWS description: Issue #29219: Fixed infinite recursion in the repr of uninitialized ctypes.CDLL instances. diff -r 7bd9ec6e5da4 -r 0503024831ad Lib/ctypes/__init__.py --- a/Lib/ctypes/__init__.py Fri Jan 13 09:23:15 2017 +0200 +++ b/Lib/ctypes/__init__.py Fri Jan 13 09:44:00 2017 +0200 @@ -324,6 +324,10 @@ """ _func_flags_ = _FUNCFLAG_CDECL _func_restype_ = c_int + # default values for repr + _name = '' + _handle = 0 + _FuncPtr = None def __init__(self, name, mode=DEFAULT_MODE, handle=None, use_errno=False, diff -r 7bd9ec6e5da4 -r 0503024831ad Misc/NEWS --- a/Misc/NEWS Fri Jan 13 09:23:15 2017 +0200 +++ b/Misc/NEWS Fri Jan 13 09:44:00 2017 +0200 @@ -212,6 +212,9 @@ Library ------- +- Issue #29219: Fixed infinite recursion in the repr of uninitialized + ctypes.CDLL instances. + - Issue #29192: Removed deprecated features in the http.cookies module. - Issue #29193: A format string argument for string.Formatter.format()