[Python-checkins] Remove unnecessary registration of weakref.WeakSet to _collections_abc.Set (GH-32211)

rhettinger webhook-mailer at python.org
Thu Mar 31 10:11:47 EDT 2022


https://github.com/python/cpython/commit/5458b7e39eb41b146c650b76e04ac67213138a82
commit: 5458b7e39eb41b146c650b76e04ac67213138a82
branch: main
author: Géry Ogam <gery.ogam at gmail.com>
committer: rhettinger <rhettinger at 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):



More information about the Python-checkins mailing list