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 ABC. 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 builtins. ---------- assignee: -> rhettinger nosy: +gvanrossum, rhettinger type: -> enhancement versions: +Python 3.9 -Python 3.7 _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue38761> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com