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
Commits
Breadcrumbs
History for
cpython
Lib
weakref.py
on
3.14
User selector
All users
All time
Commit history
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 Mar 31, 2022
Remove unnecessary registration of weakref.WeakSet to _collections_abc.Set (GH-32211)
geryogam
authored
5458b7e
View commit details
Copy full SHA for 5458b7e
View code at this point
Browse repository at this point
Commits on Mar 30, 2022
bpo-47126: Update to canonical PEP URLs specified by PEP 676 (GH-32124)
hugovk
authored
6881ea9
View commit details
Copy full SHA for 6881ea9
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 Jul 30, 2021
Update URLs in comments and metadata to use HTTPS (GH-27458)
coderanger
authored
be42c06
View commit details
Copy full SHA for be42c06
View code at this point
Browse repository at this point
Commits on Mar 25, 2020
bpo-36144: Add union operators to WeakValueDictionary584 (#19127)
curtisbucher
authored
8f1ed21
View commit details
Copy full SHA for 8f1ed21
View code at this point
Browse repository at this point
Commits on Mar 23, 2020
bpo-36144: Add union operators to WeakKeyDictionary (#19106)
curtisbucher
authored
25e580a
View commit details
Copy full SHA for 25e580a
View code at this point
Browse repository at this point
Commits on Nov 11, 2019
bpo-38761: Register WeakSet as a MutableSet (GH-17104)
rhettinger
authored
84ac437
View commit details
Copy full SHA for 84ac437
View code at this point
Browse repository at this point
Commits on Sep 9, 2019
bpo-38006: Avoid closure in weakref.WeakValueDictionary (GH-15641)
Show description for a2af05a
vstinner
authored
a2af05a
View commit details
Copy full SHA for a2af05a
View code at this point
Browse repository at this point
Commits on Aug 8, 2019
bpo-37685: Fixed __eq__, __lt__ etc implementations in some classes. (GH-14952)
Show description for 662db12
serhiy-storchaka
authored
662db12
View commit details
Copy full SHA for 662db12
View code at this point
Browse repository at this point
Commits on Jun 5, 2019
[3.9] bpo-37116: Use PEP 570 syntax for positional-only parameters. (GH-12620)
Show description for 142566c
serhiy-storchaka
authored
142566c
View commit details
Copy full SHA for 142566c
View code at this point
Browse repository at this point
Commits on Jun 1, 2019
bpo-37116: Use PEP 570 syntax for positional-only parameters. (GH-13700)
serhiy-storchaka
authored
2085bd0
View commit details
Copy full SHA for 2085bd0
View code at this point
Browse repository at this point
Commits on May 6, 2019
bpo-36542: Allow to overwrite the signature for Python functions. (GH-12705)
serhiy-storchaka
authored
d53cf99
View commit details
Copy full SHA for d53cf99
View code at this point
Browse repository at this point
Commits on Apr 1, 2019
bpo-36492: Deprecate passing some arguments as keyword arguments. (GH-12637)
Show description for 42a139e
serhiy-storchaka
authored
42a139e
View commit details
Copy full SHA for 42a139e
View code at this point
Browse repository at this point
Commits on Feb 7, 2019
bpo-35615: Fix crashes when copying a Weak{Key,Value}Dictionary. (GH-11384)
Show description for 96d37db
ltfish
authored and
pitrou
committed
96d37db
View commit details
Copy full SHA for 96d37db
View code at this point
Browse repository at this point
Commits on Sep 25, 2017
bpo-30152: Reduce the number of imports for argparse. (#1269)
serhiy-storchaka
authored
8110837
View commit details
Copy full SHA for 8110837
View code at this point
Browse repository at this point
Commits on Apr 24, 2017
bpo-30144: Import collections ABC from collections.abc rather than collections. (#1263)
serhiy-storchaka
authored
2e576f5
View commit details
Copy full SHA for 2e576f5
View code at this point
Browse repository at this point
Commits on Feb 10, 2017
Fix #29519: weakref spewing exceptions during interp finalization
ambv
committed
9cd7e17
View commit details
Copy full SHA for 9cd7e17
View code at this point
Browse repository at this point
Commits on Dec 27, 2016
Issue #28427: old keys should not remove new values from
Show description for e10ca3a
pitrou
committed
e10ca3a
View commit details
Copy full SHA for e10ca3a
View code at this point
Browse repository at this point
Commits on Dec 19, 2016
Issue #19542: Fix bugs in WeakValueDictionary.setdefault() and WeakValueDictionary.pop()
Show description for c1ee488
pitrou
committed
c1ee488
View commit details
Copy full SHA for c1ee488
View code at this point
Browse repository at this point
Commits on Sep 29, 2015
Issue #22958: Constructor and update method of weakref.WeakValueDictionary
Show description for f1c7808
serhiy-storchaka
committed
f1c7808
View commit details
Copy full SHA for f1c7808
View code at this point
Browse repository at this point
Issue #22958: Constructor and update method of weakref.WeakValueDictionary
Show description for b5102e3
serhiy-storchaka
committed
b5102e3
View commit details
Copy full SHA for b5102e3
View code at this point
Browse repository at this point
Commits on Oct 5, 2014
Closes #21173: Fix len() on a WeakKeyDictionary when .clear() was called with an iterator alive.
pitrou
committed
414e15a
View commit details
Copy full SHA for 414e15a
View code at this point
Browse repository at this point
Closes #21173: Fix len() on a WeakKeyDictionary when .clear() was called with an iterator alive.
pitrou
committed
1bf974d
View commit details
Copy full SHA for 1bf974d
View code at this point
Browse repository at this point
Commits on Jul 25, 2014
Issue #22033: Reprs of most Python implemened classes now contain actual
Show description for 465e60e
serhiy-storchaka
committed
465e60e
View commit details
Copy full SHA for 465e60e
View code at this point
Browse repository at this point
Commits on Jul 22, 2014
Issue #22031: Reprs now always use hexadecimal format with the "0x" prefix
Show description for 0c937b3
serhiy-storchaka
committed
0c937b3
View commit details
Copy full SHA for 0c937b3
View code at this point
Browse repository at this point
Commits on Jun 8, 2013
Issue #15528: Delay importing atexit until weakref.finalize() used.
shibturn
committed
a81dd65
View commit details
Copy full SHA for a81dd65
View code at this point
Browse repository at this point
Commits on May 5, 2013
Issue #15528: Add weakref.finalize to support finalization using
Show description for 7a3dae0
shibturn
committed
7a3dae0
View commit details
Copy full SHA for 7a3dae0
View code at this point
Browse repository at this point
Backout 2e446e87ac5b; it breaks the unix buildbots.
shibturn
committed
39b17c5
View commit details
Copy full SHA for 39b17c5
View code at this point
Browse repository at this point
Issue #15528: Add weakref.finalize to support finalization using
Show description for f359302
shibturn
committed
f359302
View commit details
Copy full SHA for f359302
View code at this point
Browse repository at this point
Commits on Nov 17, 2012
Issue #14631: Add a new :class:`weakref.WeakMethod` to simulate weak references to bound methods.
pitrou
committed
c3afba1
View commit details
Copy full SHA for c3afba1
View code at this point
Browse repository at this point
Commits on Oct 1, 2012
utilize yield from
pjenvey
committed
4993cc0
View commit details
Copy full SHA for 4993cc0
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
Use booleans.
birkenfeld
committed
bd87d08
View commit details
Copy full SHA for bd87d08
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
Previous
Next
You can’t perform that action at this time.