Skip to content
Navigation Menu
Sign in
Appearance settings
Platform
AI CODE CREATION
GitHub Copilot
Write better code with AI
GitHub Copilot app
Direct agents from issue to merge
MCP Registry
Integrate external tools
DEVELOPER WORKFLOWS
Actions
Automate any workflow
Codespaces
Instant dev environments
Issues
Plan and track work
Code Review
Manage code changes
Code Quality
Enforce quality at merge
APPLICATION SECURITY
GitHub Advanced Security
Find and fix vulnerabilities
Code security
Secure your code as you build
Secret protection
Stop leaks before they start
EXPLORE
Why GitHub
Documentation
Blog
Changelog
Marketplace
View all features
Solutions
BY COMPANY SIZE
Enterprises
Small and medium teams
Startups
Nonprofits
BY USE CASE
App Modernization
DevSecOps
DevOps
CI/CD
View all use cases
BY INDUSTRY
Healthcare
Financial services
Manufacturing
Government
View all industries
View all solutions
Resources
EXPLORE BY TOPIC
AI
Software Development
DevOps
Security
View all topics
EXPLORE BY TYPE
Customer stories
Events & webinars
Ebooks & reports
Business insights
GitHub Skills
SUPPORT & SERVICES
Documentation
Customer support
Community forum
Trust center
Partners
View all resources
Open Source
COMMUNITY
GitHub Sponsors
Fund open source developers
PROGRAMS
Security Lab
Maintainer Community
Accelerator
GitHub Stars
Archive Program
REPOSITORIES
Topics
Trending
Collections
Enterprise
ENTERPRISE SOLUTIONS
Enterprise platform
AI-powered developer platform
AVAILABLE ADD-ONS
GitHub Advanced Security
Enterprise-grade security features
Copilot for Business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Pricing
Type
/
to search
Sign in
Sign up
Appearance settings
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
Uh oh!
There was an error while loading.
Please reload this page
.
python
/
cpython
Public
Uh oh!
There was an error while loading.
Please reload this page
.
Notifications
You must be signed in to change notification settings
Fork
35.2k
Star
74.3k
Code
Issues
5k+
Pull requests
2.5k
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
gh-135552: Make the GC clear weakrefs later
- #136189
#136189
Merged
nascheme
merged 20 commits into
python:main
python/cpython:main
from
nascheme:gh-135552-wr-clear-later
nascheme/cpython:gh-135552-wr-clear-later
Copy head branch name to clipboard
Aug 7, 2025
Conversation
Commits
20
(20)
Checks
Files changed
Merged
gh-135552: Make the GC clear weakrefs later
#136189
nascheme
merged 20 commits into
python:main
python/cpython:main
from
nascheme:gh-135552-wr-clear-later
nascheme/cpython:gh-135552-wr-clear-later
Copy head branch name to clipboard
Commits
Commits on Jul 1, 2025
Make the GC clear weakrefs later.
Show description for 42abb05
nascheme
committed
42abb05
View commit details
Copy full SHA for 42abb05
Browse repository at this point
Remove inaccurate comment.
nascheme
committed
17a4f9e
View commit details
Copy full SHA for 17a4f9e
Browse repository at this point
Run clear_weakrefs() with world stopped.
nascheme
committed
12f0b5c
View commit details
Copy full SHA for 12f0b5c
Browse repository at this point
Commits on Jul 3, 2025
Defer weakref clears only for refs to classes.
Show description for 2f3daba
nascheme
committed
2f3daba
View commit details
Copy full SHA for 2f3daba
Browse repository at this point
Ensure weakrefs with callbacks are cleared early.
Show description for 123bc25
nascheme
committed
123bc25
View commit details
Copy full SHA for 123bc25
Browse repository at this point
Add NEWS.
nascheme
committed
496c0b1
View commit details
Copy full SHA for 496c0b1
Browse repository at this point
Add comment about wrlist iteration.
Show description for 8a553d1
nascheme
committed
8a553d1
View commit details
Copy full SHA for 8a553d1
Browse repository at this point
Merge 'origin/main' into gh-135552-wr-clear-later
nascheme
committed
01c882f
View commit details
Copy full SHA for 01c882f
Browse repository at this point
Commits on Jul 8, 2025
Merge 'origin/main' into gh-135552-wr-clear-later
nascheme
committed
0060602
View commit details
Copy full SHA for 0060602
Browse repository at this point
Revise NEWS.
nascheme
committed
900022b
View commit details
Copy full SHA for 900022b
Browse repository at this point
Defer clear for weakrefs without callbacks.
Show description for 84bd123
nascheme
committed
84bd123
View commit details
Copy full SHA for 84bd123
Browse repository at this point
Add unit test for GH-132413.
nascheme
committed
bb29ea1
View commit details
Copy full SHA for bb29ea1
Browse repository at this point
Commits on Jul 9, 2025
Add additional tests for weakref clearing.
nascheme
committed
073409b
View commit details
Copy full SHA for 073409b
Browse repository at this point
Revert unneeded changes to unit tests.
nascheme
committed
135223e
View commit details
Copy full SHA for 135223e
Browse repository at this point
Commits on Jul 23, 2025
Use assertIsNone() and assertIsNotNone().
nascheme
committed
fe9e58a
View commit details
Copy full SHA for fe9e58a
Browse repository at this point
Merge 'origin/main' into gh-135552-wr-clear-later
nascheme
committed
70ef387
View commit details
Copy full SHA for 70ef387
Browse repository at this point
Commits on Aug 6, 2025
Merge 'origin/main' into gh-135552-wr-clear-later
nascheme
committed
a7551cf
View commit details
Copy full SHA for a7551cf
Browse repository at this point
Commits on Aug 7, 2025
Revise InternalDocs/garbage_collector.md.
nascheme
committed
4fe8de0
View commit details
Copy full SHA for 4fe8de0
Browse repository at this point
Revise comments about weakref handling.
Show description for 24fd972
nascheme
committed
24fd972
View commit details
Copy full SHA for 24fd972
Browse repository at this point
Merge branch 'origin/main' into gh-135552-wr-clear-later
nascheme
committed
eca79ce
View commit details
Copy full SHA for eca79ce
Browse repository at this point
You can’t perform that action at this time.