This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Remove ABCs from collections
Type: Stage: resolved
Components: Library (Lib) Versions: Python 3.8
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: iritkatriel, jwilk, serhiy.storchaka, xtreak
Priority: normal Keywords:

Created on 2019-03-11 17:17 by jwilk, last changed 2022-04-11 14:59 by admin. This issue is now closed.

Messages (3)
msg337688 - (view) Author: Jakub Wilk (jwilk) Date: 2019-03-11 17:17
This happens with Python from git master (d9bd8ec2a4):

    >>> from collections import Hashable
    <stdin>:1: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated, and in 3.8 it will stop working

I was already already using Python 3.8, so I expected the import to fail,
as promised in the warning message.
msg337689 - (view) Author: Karthikeyan Singaravelan (xtreak) * (Python committer) Date: 2019-03-11 17:26
Please see https://github.com/python/cpython/pull/10596 . pip is incompatible with this change.
msg396531 - (view) Author: Irit Katriel (iritkatriel) * (Python committer) Date: 2021-06-25 22:54
This was updated in later 3.8.X versions:

https://github.com/python/cpython/blob/71ba16b21cb35923098026117b5e6d823c5f5707/Lib/collections/__init__.py#L49

warnings.warn("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",
            DeprecationWarning, stacklevel=2)
History
Date User Action Args
2022-04-11 14:59:12adminsetgithub: 80446
2021-06-25 22:54:44iritkatrielsetstatus: open -> closed

nosy: + iritkatriel
messages: + msg396531

resolution: fixed
stage: resolved
2019-03-11 17:26:37xtreaksetnosy: + serhiy.storchaka, xtreak
messages: + msg337689
2019-03-11 17:17:51jwilkcreate