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
See 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
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
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.4k
(2.4k)
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.