Mercurial > cpython-lru_cache-weakref
diff Objects/object.c @ 80075:315bd0ceb97a 2.7
initialize more global type objects (closes #16369)
| author | Benjamin Peterson <benjamin@python.org> |
|---|---|
| date | Tue, 30 Oct 2012 23:21:10 -0400 |
| parents | 5a2ef447b80d |
| children | 0012d4f0ca59 |
line wrap: on
line diff
--- a/Objects/object.c Tue Oct 30 21:56:43 2012 +0200 +++ b/Objects/object.c Tue Oct 30 23:21:10 2012 -0400 @@ -2198,6 +2198,18 @@ if (PyType_Ready(&PyFile_Type) < 0) Py_FatalError("Can't initialize file type"); + + if (PyType_Ready(&PyCapsule_Type) < 0) + Py_FatalError("Can't initialize capsule type"); + + if (PyType_Ready(&PyCell_Type) < 0) + Py_FatalError("Can't initialize cell 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"); }
