classification
Title: Warning regarding collections ABCs still present in 3.9
Type: behavior Stage: resolved
Components: Library (Lib) Versions: Python 3.9
process
Status: closed Resolution: duplicate
Dependencies: Superseder: collections: remove deprecated aliases to ABC classes
View: 37324
Assigned To: Nosy List: michaelanckaert, vstinner, xtreak
Priority: normal Keywords:

Created on 2019-08-22 15:50 by michaelanckaert, last changed 2019-08-22 15:56 by xtreak. This issue is now closed.

Messages (3)
msg350202 - (view) Author: Michael Anckaert (michaelanckaert) * Date: 2019-08-22 15:50
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
msg350204 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2019-08-22 15:54
It's a work-in-progress: see bpo-37324.
msg350205 - (view) Author: Karthikeyan Singaravelan (xtreak) * (Python triager) Date: 2019-08-22 15:56
Please see discussion at issue36953 and issue37324. It's currently blocked by Jinja that doesn't have a release with the fix to be used in CI.
History
Date User Action Args
2019-08-22 15:56:41xtreaksetnosy: + xtreak
messages: + msg350205
2019-08-22 15:54:25vstinnersetstatus: open -> closed

superseder: collections: remove deprecated aliases to ABC classes

nosy: + vstinner
messages: + msg350204
resolution: duplicate
stage: resolved
2019-08-22 15:50:18michaelanckaertcreate