[issue45776] abc submodule not an attribute of collections on Python 3.10.0 on Windows

Raymond Hettinger report at bugs.python.org
Wed Nov 10 09:49:02 EST 2021


Raymond Hettinger <raymond.hettinger at gmail.com> added the comment:

> this coincides with collection ABCs being made unavailable directly from `collections` with this 3.9 -> 3.10 version change

Direct access from collections was removed after being deprecated for almost almost a decade ago:
 
    "Using or importing the ABCs from 'collections' instead "
    "of from 'collections.abc' is deprecated since Python 3.3, "
    "and in 3.10 it will stop working"

So Windows is correctly reporting an AttributeError.

The mystery is why it is still accessible on a Mac.  That seems like a bug.

----------
nosy: +rhettinger

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue45776>
_______________________________________


More information about the Python-bugs-list mailing list