diff options
author | Guido van Rossum <guido@python.org> | 2001-08-07 17:24:28 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2001-08-07 17:24:28 (GMT) |
commit | 528b7eb0b0fa5a6bbbf5f3dfbfb7c356edaf031c (patch) | |
tree | 7cceb95854e84eb61468b749c168f870a1d4dc2a /Objects/object.c | |
parent | c5943b1c8c49e235efd6e6b4c7fbfb4952c28fd0 (diff) | |
download | cpython-528b7eb0b0fa5a6bbbf5f3dfbfb7c356edaf031c.zip cpython-528b7eb0b0fa5a6bbbf5f3dfbfb7c356edaf031c.tar.gz cpython-528b7eb0b0fa5a6bbbf5f3dfbfb7c356edaf031c.tar.bz2 |
- Rename PyType_InitDict() to PyType_Ready().
- Add an explicit call to PyType_Ready(&PyList_Type) to pythonrun.c
(just for the heck of it, really -- we should either explicitly
ready all types, or none).
Diffstat (limited to 'Objects/object.c')
-rw-r--r-- | Objects/object.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Objects/object.c b/Objects/object.c index 137752d..0d9b3fe 100644 --- a/Objects/object.c +++ b/Objects/object.c @@ -1160,7 +1160,7 @@ PyObject_GenericGetAttr(PyObject *obj, PyObject *name) PyObject **dictptr; if (tp->tp_dict == NULL) { - if (PyType_InitDict(tp) < 0) + if (PyType_Ready(tp) < 0) return NULL; } @@ -1207,7 +1207,7 @@ PyObject_GenericSetAttr(PyObject *obj, PyObject *name, PyObject *value) PyObject **dictptr; if (tp->tp_dict == NULL) { - if (PyType_InitDict(tp) < 0) + if (PyType_Ready(tp) < 0) return -1; } |