Commit 7a7e04e4 authored by Serhiy Storchaka's avatar Serhiy Storchaka

Issue #29219: Fixed infinite recursion in the repr of uninitialized

ctypes.CDLL instances.
parent 99ba17f5
...@@ -342,6 +342,10 @@ class CDLL(object): ...@@ -342,6 +342,10 @@ class CDLL(object):
""" """
_func_flags_ = _FUNCFLAG_CDECL _func_flags_ = _FUNCFLAG_CDECL
_func_restype_ = c_int _func_restype_ = c_int
# default values for repr
_name = '<uninitialized>'
_handle = 0
_FuncPtr = None
def __init__(self, name, mode=DEFAULT_MODE, handle=None, def __init__(self, name, mode=DEFAULT_MODE, handle=None,
use_errno=False, use_errno=False,
......
...@@ -23,6 +23,9 @@ Extension Modules ...@@ -23,6 +23,9 @@ Extension Modules
Library Library
------- -------
- Issue #29219: Fixed infinite recursion in the repr of uninitialized
ctypes.CDLL instances.
- Issue #29082: Fixed loading libraries in ctypes by unicode names on Windows. - Issue #29082: Fixed loading libraries in ctypes by unicode names on Windows.
Original patch by Chi Hsuan Yen. Original patch by Chi Hsuan Yen.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment