mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
initialize weakref some weakref types
This commit is contained in:
parent
01c6e6fb35
commit
308c6ba002
1 changed files with 6 additions and 0 deletions
|
@ -2039,6 +2039,12 @@ _Py_ReadyTypes(void)
|
||||||
if (PyType_Ready(&_PyWeakref_RefType) < 0)
|
if (PyType_Ready(&_PyWeakref_RefType) < 0)
|
||||||
Py_FatalError("Can't initialize weakref type");
|
Py_FatalError("Can't initialize weakref type");
|
||||||
|
|
||||||
|
if (PyType_Ready(&_PyWeakref_CallableProxyType) < 0)
|
||||||
|
Py_FatalError("Can't initialize callable weakref proxy type");
|
||||||
|
|
||||||
|
if (PyType_Ready(&_PyWeakref_ProxyType) < 0)
|
||||||
|
Py_FatalError("Can't initialize weakref proxy type");
|
||||||
|
|
||||||
if (PyType_Ready(&PyBool_Type) < 0)
|
if (PyType_Ready(&PyBool_Type) < 0)
|
||||||
Py_FatalError("Can't initialize bool type");
|
Py_FatalError("Can't initialize bool type");
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue