Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Draft
dolfinus wants to merge8 commits intopython:main
base:main
Choose a base branch
Loading
fromdolfinus:improvement/ABCMeta_subclasscheck_v2

Conversation

@dolfinus
Copy link

@dolfinusdolfinus commentedNov 6, 2025
edited
Loading

Alternative implementation of#131914 which doesn't modify class attributes on every__subclasscheck__ call. Instead it checks in__new__ does current class havedef __subclasses(cls) overriden, and if so, enables casefor scls in cls.__subclasses__(), which is disabled by default.

@bedevere-app
Copy link

Most changes to Pythonrequire a NEWS entry. Add one using theblurb_it web app or theblurb command-line tool.

If this change has little impact on Python users, wait for a maintainer to apply theskip news label instead.

@dolfinusdolfinus changed the titleImprovement/abc meta subclasscheck v2gh-92810: Reduce memory usage by ABCMeta.__subclasscheck__ (v2)Nov 6, 2025
@bedevere-app
Copy link

Most changes to Pythonrequire a NEWS entry. Add one using theblurb_it web app or theblurb command-line tool.

If this change has little impact on Python users, wait for a maintainer to apply theskip news label instead.

@bedevere-app
Copy link

Most changes to Pythonrequire a NEWS entry. Add one using theblurb_it web app or theblurb command-line tool.

If this change has little impact on Python users, wait for a maintainer to apply theskip news label instead.

@dolfinusdolfinus changed the titlegh-92810: Reduce memory usage by ABCMeta.__subclasscheck__ (v2)gh-92810: Reduce memory usage by ABCMeta.__subclasscheck__Nov 6, 2025
@bedevere-app
Copy link

Most changes to Pythonrequire a NEWS entry. Add one using theblurb_it web app or theblurb command-line tool.

If this change has little impact on Python users, wait for a maintainer to apply theskip news label instead.

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@AA-TurnerAA-TurnerAwaiting requested review from AA-TurnerAA-Turner will be requested when the pull request is marked ready for reviewAA-Turner is a code owner

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

1 participant

@dolfinus

[8]ページ先頭

©2009-2025 Movatter.jp