Issue 36265: Remove ABCs from collections (original) (raw)

Issue36265

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 :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:12 admin set github: 80446
2021-06-25 22:54:44 iritkatriel set status: open -> closednosy: + iritkatrielmessages: + resolution: fixedstage: resolved
2019-03-11 17:26:37 xtreak set nosy: + serhiy.storchaka, xtreakmessages: +
2019-03-11 17:17:51 jwilk create