diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2017-01-13 09:44:00 +0200 |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2017-01-13 09:44:00 +0200 |
commit | 6196ac418693cedcb103650d41b74ca20cf66640 (patch) | |
tree | 44f65423dcfee5fbc84e6c421e372a45c152a3df | |
parent | cc283378d65e8294895eead78815f8cda15653f5 (diff) | |
parent | 4c4ff5f4d43e49ee429f37916c34fff8435693ca (diff) | |
download | cpython-git-6196ac418693cedcb103650d41b74ca20cf66640.tar.gz |
Issue #29219: Fixed infinite recursion in the repr of uninitialized
ctypes.CDLL instances.
-rw-r--r-- | Lib/ctypes/__init__.py | 4 | ||||
-rw-r--r-- | Misc/NEWS | 3 |
2 files changed, 7 insertions, 0 deletions
diff --git a/Lib/ctypes/__init__.py b/Lib/ctypes/__init__.py index 1c9d3a525b..f8709683fb 100644 --- a/Lib/ctypes/__init__.py +++ b/Lib/ctypes/__init__.py @@ -324,6 +324,10 @@ class CDLL(object): """ _func_flags_ = _FUNCFLAG_CDECL _func_restype_ = c_int + # default values for repr + _name = '<uninitialized>' + _handle = 0 + _FuncPtr = None def __init__(self, name, mode=DEFAULT_MODE, handle=None, use_errno=False, @@ -212,6 +212,9 @@ Core and Builtins 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() |