summaryrefslogtreecommitdiffstats
path: root/Objects/object.c
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2012-10-31 03:21:10 (GMT)
committerBenjamin Peterson <benjamin@python.org>2012-10-31 03:21:10 (GMT)
commitc43112823b1f748822c43ad42566537580c02af2 (patch)
tree38d69a0537c1246c02c64c5711e5efa07787e400 /Objects/object.c
parente9aeca7c248bab56201ee5949e0535f96b54865b (diff)
downloadcpython-c43112823b1f748822c43ad42566537580c02af2.zip
cpython-c43112823b1f748822c43ad42566537580c02af2.tar.gz
cpython-c43112823b1f748822c43ad42566537580c02af2.tar.bz2
initialize more global type objects (closes #16369)
Diffstat (limited to 'Objects/object.c')
-rw-r--r--Objects/object.c24
1 files changed, 24 insertions, 0 deletions
diff --git a/Objects/object.c b/Objects/object.c
index 4730a66..28bb9c1 100644
--- a/Objects/object.c
+++ b/Objects/object.c
@@ -1644,6 +1644,30 @@ _Py_ReadyTypes(void)
if (PyType_Ready(&PyZip_Type) < 0)
Py_FatalError("Can't initialize zip type");
+
+ if (PyType_Ready(&PyCapsule_Type) < 0)
+ Py_FatalError("Can't initialize capsule type");
+
+ if (PyType_Ready(&PyLongRangeIter_Type) < 0)
+ Py_FatalError("Can't initialize long range iterator type");
+
+ if (PyType_Ready(&PyCell_Type) < 0)
+ Py_FatalError("Can't initialize cell type");
+
+ if (PyType_Ready(&PyInstanceMethod_Type) < 0)
+ Py_FatalError("Can't initialize instance method type");
+
+ if (PyType_Ready(&PyClassMethodDescr_Type) < 0)
+ Py_FatalError("Can't initialize class method descr type");
+
+ if (PyType_Ready(&PyMethodDescr_Type) < 0)
+ Py_FatalError("Can't initialize method descr type");
+
+ if (PyType_Ready(&PyCallIter_Type) < 0)
+ Py_FatalError("Can't initialize call iter type");
+
+ if (PyType_Ready(&PySeqIter_Type) < 0)
+ Py_FatalError("Can't initialize sequence iterator type");
}