Raymond Hettinger <raymond.hettin...@gmail.com> added the comment:

We could register the WeakSet in _collections_abc, right after MutableSet is 
defined.  That module only registered builtins so that it can avoid imports; 
however, since we know that WeakSet is already loaded, it is reasonable to add 
an import for registration purposes.

This was likely omitted because WeakSet is used in the implementation of the 

Marking this as a proposed enhancement rather than as a bug because the 
collections ABCs are under no obligation to register anything more than the 

assignee:  -> rhettinger
nosy: +gvanrossum, rhettinger
type:  -> enhancement
versions: +Python 3.9 -Python 3.7

Python tracker <rep...@bugs.python.org>
Python-bugs-list mailing list

Reply via email to