diff options
author | Benjamin Peterson <benjamin@python.org> | 2009-04-18 22:15:26 +0000 |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2009-04-18 22:15:26 +0000 |
commit | 01c6e6fb354ec9bb2157ee4e02ecb5b165e64b76 (patch) | |
tree | 29cad8aa58e1e26401529f7d8549de2ebdc3279b /Objects/object.c | |
parent | accb3d0014cf4b4bebf3ae8f5a1c73e099c470f7 (diff) | |
download | cpython-git-01c6e6fb354ec9bb2157ee4e02ecb5b165e64b76.tar.gz |
many more types to initialize (I had to expose some of them)
Diffstat (limited to 'Objects/object.c')
-rw-r--r-- | Objects/object.c | 44 |
1 files changed, 43 insertions, 1 deletions
diff --git a/Objects/object.c b/Objects/object.c index 8abe200be6..35307ad9ff 100644 --- a/Objects/object.c +++ b/Objects/object.c @@ -2,6 +2,7 @@ /* Generic object operations; and implementation of None (NoObject) */ #include "Python.h" +#include "frameobject.h" #ifdef __cplusplus extern "C" { @@ -2083,8 +2084,10 @@ _Py_ReadyTypes(void) if (PyType_Ready(&PyStaticMethod_Type) < 0) Py_FatalError("Can't initialize static method type"); +#ifndef WITHOUT_COMPLEX if (PyType_Ready(&PyComplex_Type) < 0) - Py_FatalError("Can't initalize complex type"); + Py_FatalError("Can't initialize complex type"); +#endif if (PyType_Ready(&PyFloat_Type) < 0) Py_FatalError("Can't initialize float type"); @@ -2115,6 +2118,45 @@ _Py_ReadyTypes(void) if (PyType_Ready(&PyReversed_Type) < 0) Py_FatalError("Can't initialize reversed type"); + + if (PyType_Ready(&PyCode_Type) < 0) + Py_FatalError("Can't initialize code type"); + + if (PyType_Ready(&PyFrame_Type) < 0) + Py_FatalError("Can't initialize frame type"); + + if (PyType_Ready(&PyCFunction_Type) < 0) + Py_FatalError("Can't initialize builtin function type"); + + if (PyType_Ready(&PyMethod_Type) < 0) + Py_FatalError("Can't initialize method type"); + + if (PyType_Ready(&PyFunction_Type) < 0) + Py_FatalError("Can't initialize function type"); + + if (PyType_Ready(&PyClass_Type) < 0) + Py_FatalError("Can't initialize class type"); + + if (PyType_Ready(&PyDictProxy_Type) < 0) + Py_FatalError("Can't initialize dict proxy type"); + + if (PyType_Ready(&PyGen_Type) < 0) + Py_FatalError("Can't initialize generator type"); + + if (PyType_Ready(&PyGetSetDescr_Type) < 0) + Py_FatalError("Can't initialize get-set descriptor type"); + + if (PyType_Ready(&PyWrapperDescr_Type) < 0) + Py_FatalError("Can't initialize wrapper type"); + + if (PyType_Ready(&PyInstance_Type) < 0) + Py_FatalError("Can't initialize instance type"); + + if (PyType_Ready(&PyEllipsis_Type) < 0) + Py_FatalError("Can't initialize ellipsis type"); + + if (PyType_Ready(&PyMemberDescr_Type) < 0) + Py_FatalError("Can't initialize member descriptor type"); } |