mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
Issue #24254: Preserve class attribute definition order.
This commit is contained in:
parent
4565986138
commit
92a6c170e6
18 changed files with 568 additions and 189 deletions
|
@ -145,7 +145,7 @@ builtin___build_class__(PyObject *self, PyObject *args, PyObject *kwds)
|
|||
if (prep == NULL) {
|
||||
if (PyErr_ExceptionMatches(PyExc_AttributeError)) {
|
||||
PyErr_Clear();
|
||||
ns = PyDict_New();
|
||||
ns = PyODict_New();
|
||||
}
|
||||
else {
|
||||
Py_DECREF(meta);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue