mirror of
https://github.com/python/cpython.git
synced 2024-11-27 20:04:41 +08:00
Issue #29219: Fixed infinite recursion in the repr of uninitialized
ctypes.CDLL instances.
This commit is contained in:
parent
3023ebb43f
commit
4b318f8be9
@ -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,
|
||||
|
@ -13,6 +13,9 @@ Core and Builtins
|
||||
Library
|
||||
-------
|
||||
|
||||
- Issue #29219: Fixed infinite recursion in the repr of uninitialized
|
||||
ctypes.CDLL instances.
|
||||
|
||||
- Issue #28969: Fixed race condition in C implementation of functools.lru_cache.
|
||||
KeyError could be raised when cached function with full cache was
|
||||
simultaneously called from differen threads with the same uncached arguments.
|
||||
|
Loading…
Reference in New Issue
Block a user