mirror of
https://github.com/python/cpython.git
synced 2025-11-03 11:23:31 +00:00
Issue #29219: Fixed infinite recursion in the repr of uninitialized
ctypes.CDLL instances.
This commit is contained in:
commit
4c4ff5f4d4
2 changed files with 7 additions and 0 deletions
|
|
@ -324,6 +324,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,
|
||||||
|
|
|
||||||
|
|
@ -44,6 +44,9 @@ Core and Builtins
|
||||||
Library
|
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.
|
- Issue #28969: Fixed race condition in C implementation of functools.lru_cache.
|
||||||
KeyError could be raised when cached function with full cache was
|
KeyError could be raised when cached function with full cache was
|
||||||
simultaneously called from differen threads with the same uncached arguments.
|
simultaneously called from differen threads with the same uncached arguments.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue