summaryrefslogtreecommitdiffstats
path: root/Objects
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2009-04-19 02:32:42 (GMT)
committerBenjamin Peterson <benjamin@python.org>2009-04-19 02:32:42 (GMT)
commit308c6ba002c4332b8c6373e658da1764ddc1970c (patch)
treea01d2cba5468fefaea8f8211fdc5e9501a68ee07 /Objects
parent01c6e6fb354ec9bb2157ee4e02ecb5b165e64b76 (diff)
downloadcpython-308c6ba002c4332b8c6373e658da1764ddc1970c.zip
cpython-308c6ba002c4332b8c6373e658da1764ddc1970c.tar.gz
cpython-308c6ba002c4332b8c6373e658da1764ddc1970c.tar.bz2
initialize weakref some weakref types
Diffstat (limited to 'Objects')
-rw-r--r--Objects/object.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/Objects/object.c b/Objects/object.c
index 35307ad..5c7f0fb 100644
--- a/Objects/object.c
+++ b/Objects/object.c
@@ -2039,6 +2039,12 @@ _Py_ReadyTypes(void)
if (PyType_Ready(&_PyWeakref_RefType) < 0)
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)
Py_FatalError("Can't initialize bool type");