From: Benjamin Peterson Date: Sun, 19 Apr 2009 02:32:42 +0000 (+0000) Subject: initialize weakref some weakref types X-Git-Tag: v2.7a1~1453 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=308c6ba002c4332b8c6373e658da1764ddc1970c;p=thirdparty%2FPython%2Fcpython.git initialize weakref some weakref types --- diff --git a/Objects/object.c b/Objects/object.c index 35307ad9fff8..5c7f0fb6097e 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");