Hi, As mentioned in the commit message for 96513d71e650, creating a type using PyType_FromSpec seems to leak references when the type is instantiated. This happens with SSLError: >>> e = ssl.SSLError() >>> sys.getrefcount(ssl.SSLError) 35 >>> e = ssl.SSLError() >>> sys.getrefcount(ssl.SSLError) 36 >>> e = ssl.SSLError() >>> sys.getrefcount(ssl.SSLError) 37 (the SSLError definition is quite simple; it only uses the Py_tp_base, Py_tp_doc and Py_tp_str slots) The SSLError subclasses, e.g. SSLWantReadError, which are created using PyErr_NewExceptionWithDoc, are not affected: >>> e = ssl.SSLWantReadError() >>> sys.getrefcount(ssl.SSLWantReadError) 8 >>> e = ssl.SSLWantReadError() >>> sys.getrefcount(ssl.SSLWantReadError) 8 >>> e = ssl.SSLWantReadError() >>> sys.getrefcount(ssl.SSLWantReadError) 8 Regards Antoine.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4