[New-bugs-announce] [issue45776] abc submodule not an attribute of collections on Python 3.10.0 on Windows

Steve Canny report at bugs.python.org
Wed Nov 10 01:54:36 EST 2021


New submission from Steve Canny <stcanny at gmail.com>:

On CPython 3.10.0 on Windows but not MacOS, AttributeError is raised when referencing `abc` on collections (instead of importing `collections.abc`).

>>> import collections
>>> collections.abc.Container
AttributeError: module 'collections' has no attribute 'abc'

This works on MacOS CPython 3.10.0 and also works on Windows CPython 3.9.6.

It's possibly interesting this coincides with collection ABCs being made unavailable directly from `collections` with this 3.9 -> 3.10 version change, but that's just a guess, for whatever it's worth.

----------
components: Windows
messages: 406074
nosy: paul.moore, stcanny, steve.dower, tim.golden, zach.ware
priority: normal
severity: normal
status: open
title: abc submodule not an attribute of collections on Python 3.10.0 on Windows
type: behavior
versions: Python 3.10

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


More information about the New-bugs-announce mailing list