mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
Issue #29219: Fixed infinite recursion in the repr of uninitialized
ctypes.CDLL instances.
This commit is contained in:
parent
3023ebb43f
commit
4b318f8be9
2 changed files with 7 additions and 0 deletions
|
@ -327,6 +327,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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue