Skip to content
Navigation Menu
Sign in
Products
Platform
GitHub
Repository hosting, code review, and collaboration
Copilot
AI coding agent for tasks, projects and automated work
Build & Ship
Actions
CI/CD and automation
Code Quality
Quality analysis, fixes, and enforcement
Codespaces
Cloud development environments
Secure
Code Security
Vulnerability detection and remediation
Secret Protection
Secret scanning and leak prevention
All Features
Developers
Learn
Documentation
Training
Certifications
Build
Build with Copilot
Customize Copilot
Integrations
Explore
Trending repos
GitHub Sponsors
Events
Changelog
Changelog
Your source for the latest features, improvements, and fixes across GitHub products, all in one place.
Businesses
By Stage
Enterprises
Team
Startups
Nonprofits
By Industry
Healthcare
Financial services
Manufacturing
Government
See all industries
Evaluate GitHub
Why GitHub
Customer Stories
Business insights
Trust Center
Add-ons
GitHub Advanced Security
Enterprise-grade code security
Copilot for business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Resources
Learn & Connect
Documentation
Resource center
Blog
Events & webinars
Community Forum
Customer Stories
Integrations
Support
Customer support
Training
GitHub Status
Company
About
Partners
Changelog
GitHub Universe
GitHub Universe
The event for developers, by developers — talks, workshops, and what’s next for GitHub.
Pricing
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 }}
python
cpython
Repository navigation
Code
Issues
5k+
(5k+)
Pull requests
2.3k
(2.3k)
Actions
Projects
Security and quality
Insights
More
items
Commits
Breadcrumbs
History for
cpython
Lib
_weakrefset.py
on
main
User selector
All users
Datepicker
All time
Commit history
Commits on Oct 21, 2026
gh-74876: Support pickling weak references and weak containers (#153818)
Show description for 1a4dfd1
3 people
authored
1a4dfd1
View commit details
Copy full SHA for 1a4dfd1
View code at this point
Browse repository at this point
Commits on Oct 13, 2024
gh-89967: make WeakKeyDictionary and WeakValueDictionary thread safe (#125325)
Show description for cd0f9d1
kumaraditya303
authored
cd0f9d1
View commit details
Copy full SHA for cd0f9d1
View code at this point
Browse repository at this point
Commits on Aug 27, 2024
gh-123089: Make weakref.WeakSet safe against concurrent mutations while it is being iterated (#123279)
Show description for 03f5abf
kumaraditya303
authored
03f5abf
View commit details
Copy full SHA for 03f5abf
View code at this point
Browse repository at this point
Commits on Apr 6, 2022
bpo-26579: Add object.__getstate__(). (GH-2821)
Show description for 884eba3
serhiy-storchaka
authored
884eba3
View commit details
Copy full SHA for 884eba3
View code at this point
Browse repository at this point
Commits on Aug 28, 2021
bpo-44962: Fix a race in WeakKeyDict, WeakValueDict and WeakSet when two threads attempt to commit the last pending removal (GH-27921)
Show description for 206b21e
graingert
and
ambv
authored
206b21e
View commit details
Copy full SHA for 206b21e
View code at this point
Browse repository at this point
Commits on Apr 14, 2020
bpo-39481: Make weakref and WeakSet generic (GH-19497)
emmatyping
authored
8ef8750
View commit details
Copy full SHA for 8ef8750
View code at this point
Browse repository at this point
Commits on May 20, 2019
bpo-36949: Implement __repr__ on WeakSet (GH-13415)
isidentical
authored and
zooba
committed
5ae1c84
View commit details
Copy full SHA for 5ae1c84
View code at this point
Browse repository at this point
Commits on May 18, 2017
bpo-30296 Remove unnecessary tuples, lists, sets, and dicts (#1489)
Show description for 3972628
jdufresne
authored and
rhettinger
committed
3972628
View commit details
Copy full SHA for 3972628
View code at this point
Browse repository at this point
Commits on Apr 5, 2017
bpo-29762: More use "raise from None". (#569)
Show description for 5affd23
serhiy-storchaka
authored
5affd23
View commit details
Copy full SHA for 5affd23
View code at this point
Browse repository at this point
Commits on Dec 17, 2013
Issue #20006: Fix sporadic failures in test_weakset.
pitrou
committed
320b391
View commit details
Copy full SHA for 320b391
View code at this point
Browse repository at this point
Commits on Mar 5, 2012
Issue #14195: Make WeakSet.__lt__ and WeakSet.__gt__ irreflexive.
meadori
committed
653f932
View commit details
Copy full SHA for 653f932
View code at this point
Browse repository at this point
Commits on Mar 4, 2012
Fix some set algebra methods of WeakSet objects.
pitrou
committed
9c47ac0
View commit details
Copy full SHA for 9c47ac0
View code at this point
Browse repository at this point
Port 2.7 fix for sporadic failure in test_weakset.
pitrou
committed
de89d4b
View commit details
Copy full SHA for de89d4b
View code at this point
Browse repository at this point
Commits on Mar 1, 2012
Issue #14159: Fix the len() of weak containers (WeakSet, WeakKeyDictionary, WeakValueDictionary) to return a better approximation when some objects are dead or dying.
Show description for bbe2f60
pitrou
committed
bbe2f60
View commit details
Copy full SHA for bbe2f60
View code at this point
Browse repository at this point
Commits on Dec 3, 2010
#10360: catch TypeError in WeakSet.__contains__, just like WeakKeyDictionary does.
birkenfeld
committed
f8de3fe
View commit details
Copy full SHA for f8de3fe
View code at this point
Browse repository at this point
Commits on Jan 8, 2010
Issue #7105: Make WeakKeyDictionary and WeakValueDictionary robust against
Show description for c1baa60
pitrou
committed
c1baa60
View commit details
Copy full SHA for c1baa60
View code at this point
Browse repository at this point
Commits on May 17, 2009
Issue 5964: Fixed WeakSet __eq__ comparison to handle non-WeakSet objects.
Robert Schuppenies
committed
4ad1d6f
View commit details
Copy full SHA for 4ad1d6f
View code at this point
Browse repository at this point
Commits on May 18, 2008
Add a test suite for WeakSet mostly derived from test_set and fix some
Show description for 9dba5d9
birkenfeld
committed
9dba5d9
View commit details
Copy full SHA for 9dba5d9
View code at this point
Browse repository at this point
Fix two issues in the weak set implementation.
birkenfeld
committed
bf93b04
View commit details
Copy full SHA for bf93b04
View code at this point
Browse repository at this point
Commits on Feb 5, 2008
Moved WeakSet into a bootstap module use by abc.py.
Show description for 93fa608
rhettinger
committed
93fa608
View commit details
Copy full SHA for 93fa608
View code at this point
Browse repository at this point
Loading
You can’t perform that action at this time.