cpython: e5149789e4ea (original) (raw)

--- a/Objects/object.c +++ b/Objects/object.c @@ -1040,8 +1040,7 @@ PyObject * name->ob_type->tp_name); return NULL; }

if (tp->tp_dict == NULL) { if (PyType_Ready(tp) < 0) @@ -1049,10 +1048,10 @@ PyObject * } descr = _PyType_Lookup(tp, name);

f = NULL; if (descr != NULL) {

@@ -1072,8 +1071,9 @@ PyObject * if (tsize < 0) tsize = -tsize; size = _PyObject_VAR_SIZE(tp, tsize);

@@ -1141,12 +1141,11 @@ int Py_INCREF(name); descr = _PyType_Lookup(tp, name);

@@ -1154,40 +1153,32 @@ int if (dict == NULL) { dictptr = _PyObject_GetDictPtr(obj);

-