]> granicus.if.org Git - python/commitdiff
initialize weakref some weakref types
authorBenjamin Peterson <benjamin@python.org>
Sun, 19 Apr 2009 02:32:42 +0000 (02:32 +0000)
committerBenjamin Peterson <benjamin@python.org>
Sun, 19 Apr 2009 02:32:42 +0000 (02:32 +0000)
Objects/object.c

index 35307ad9fff870d871928802705af5620c002339..5c7f0fb6097e449c91adff6c5cb09bc1016c6cd6 100644 (file)
@@ -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");