New submission from Steve Canny <stca...@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 <rep...@bugs.python.org>
<https://bugs.python.org/issue45776>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to