8000 bpo-45383: Inherit MetaClass from bases in FromSpec API by seberg · Pull Request #28748 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

bpo-45383: Inherit MetaClass from bases in FromSpec API #28748

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 19 commits into from
Jun 9, 2022
Merged
Changes from 1 commit
Commits
10000
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix compiler warning for Py_NewRef result
  • Loading branch information
encukou committed Jun 1, 2022
commit a7af972e72ad6ee70fb241f66b511d7feea41b4e
2 changes: 1 addition & 1 deletion Objects/typeobject.c
Original file line number Diff line number Diff line change
Expand Up @@ -3545,7 +3545,7 @@ PyType_FromMetaclass(PyTypeObject *metaclass, PyObject *module,
type->tp_as_buffer = &res->as_buffer;

/* Set tp_base and tp_bases */
type->tp_base = (PyObject *)Py_NewRef(base);
type->tp_base = (PyTypeObject *)Py_NewRef(base);
type->tp_bases = bases;
bases = NULL; // We give our reference to bases to the type

Expand Down
0