diff options
author | Benjamin Peterson <benjamin@python.org> | 2012-10-31 03:21:10 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2012-10-31 03:21:10 (GMT) |
commit | 6da3ed63d83375f183fa94cbf7c55acea128e088 (patch) | |
tree | 40bd95eb9a5deff7dc761a9ebc409a7f7b549a66 /Objects | |
parent | 1625d88709abb45d392d1f48b1803ab5dde3bd77 (diff) | |
download | cpython-6da3ed63d83375f183fa94cbf7c55acea128e088.zip cpython-6da3ed63d83375f183fa94cbf7c55acea128e088.tar.gz cpython-6da3ed63d83375f183fa94cbf7c55acea128e088.tar.bz2 |
initialize more global type objects (closes #16369)
Diffstat (limited to 'Objects')
-rw-r--r-- | Objects/object.c | 12 | ||||
-rw-r--r-- | Objects/unicodeobject.c | 6 |
2 files changed, 18 insertions, 0 deletions
diff --git a/Objects/object.c b/Objects/object.c index 9fea13a..e732dce 100644 --- a/Objects/object.c +++ b/Objects/object.c @@ -2198,6 +2198,18 @@ _Py_ReadyTypes(void) 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"); } diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c index 79b87df..a4c04f4 100644 --- a/Objects/unicodeobject.c +++ b/Objects/unicodeobject.c @@ -8847,6 +8847,12 @@ void _PyUnicode_Init(void) ); PyType_Ready(&EncodingMapType); + + if (PyType_Ready(&PyFieldNameIter_Type) < 0) + Py_FatalError("Can't initialize field name iterator type"); + + if (PyType_Ready(&PyFormatterIter_Type) < 0) + Py_FatalError("Can't initialize formatter iter type"); } /* Finalize the Unicode implementation */ |