Commit cab05807 authored by Guido van Rossum's avatar Guido van Rossum

Undo the last chunk of the previous patch, putting back a useful

assert into PyType_Ready(): now that we're not clearing tp_dict, we
can assert that it's non-NULL again.
parent a3862097
......@@ -2175,8 +2175,10 @@ PyType_Ready(PyTypeObject *type)
PyTypeObject *base;
int i, n;
if (type->tp_flags & Py_TPFLAGS_READY)
if (type->tp_flags & Py_TPFLAGS_READY) {
assert(type->tp_dict != NULL);
return 0;
}
assert((type->tp_flags & Py_TPFLAGS_READYING) == 0);
type->tp_flags |= Py_TPFLAGS_READYING;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment