Remove unnecessary registration of weakref.WeakSet to _collections_abc.Set (GH-32211)
31 Mar
2022
31 Mar
'22
2:11 p.m.
https://github.com/python/cpython/commit/5458b7e39eb41b146c650b76e04ac672131... commit: 5458b7e39eb41b146c650b76e04ac67213138a82 branch: main author: Géry Ogam <gery.ogam@gmail.com> committer: rhettinger <rhettinger@users.noreply.github.com> date: 2022-03-31T09:11:35-05:00 summary: Remove unnecessary registration of weakref.WeakSet to _collections_abc.Set (GH-32211) files: M Lib/weakref.py diff --git a/Lib/weakref.py b/Lib/weakref.py index 42aba654de549..25b70927e29c3 100644 --- a/Lib/weakref.py +++ b/Lib/weakref.py @@ -33,7 +33,6 @@ "WeakSet", "WeakMethod", "finalize"] -_collections_abc.Set.register(WeakSet) _collections_abc.MutableSet.register(WeakSet) class WeakMethod(ref):
929
Age (days ago)
929
Last active (days ago)
0 comments
1 participants
participants (1)
-
rhettinger