8000 gh-92810: Reduce memory usage by ABCMeta.__subclasscheck__ by dolfinus · Pull Request #131914 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

gh-92810: Reduce memory usage by ABCMeta.__subclasscheck__ #131914

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

Open
wants to merge 19 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
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
gh-92810: Apply fixes
Signed-off-by: Martynov Maxim <martinov_m_s_@mail.ru>
  • Loading branch information
dolfinus committed Apr 21, 2025
commit 3d80b1e46d4eb1480abbc0bd363cd22cfe393b0c
1 change: 0 additions & 1 deletion Modules/_abc.c
Original file line number Diff line number Diff line change
Expand Up @@ -760,7 +760,6 @@ _abc__abc_subclasscheck_impl(PyObject *module, PyObject *self,
PyErr_SetString(PyExc_TypeError, "issubclass() arg 1 must be a class");
return NULL;
}
PyTypeObject *cls = (PyTypeObject *)self;

PyObject *ok, *subclasses = NULL, *result = NULL;
_abcmodule_state *state = NULL;
Expand Down
0