[New-bugs-announce] [issue37917] Warning regarding collections ABCs still present in 3.9

Michael Anckaert report at bugs.python.org
Thu Aug 22 11:50:18 EDT 2019


New submission from Michael Anckaert <michael.anckaert at sinax.be>:

When importing an ABC from the collections module in Python 3.9 there is a warning that this is deprecated since Python 3.3 and will stop working in Python 3.9. 

Should this warning be removed and lead to an ImportError? 

Python 3.9.0a0 (heads/master:a38e9d1399, Aug 22 2019, 17:48:16) 
[GCC 8.3.1 20190223 (Red Hat 8.3.1-2)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from collections import Sequence
<stdin>:1: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated since Python 3.3, and in 3.9 it will stop working

----------
components: Library (Lib)
messages: 350202
nosy: michaelanckaert
priority: normal
severity: normal
status: open
title: Warning regarding collections ABCs still present in 3.9
type: behavior
versions: Python 3.9

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


More information about the New-bugs-announce mailing list