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: Mapping from to collections.abc
Type: resource usage Stage: resolved
Components: Versions: Python 3.10
process
Status: closed Resolution: third party
Dependencies: Superseder:
Assigned To: Nosy List: JelleZijlstra, haitanghuadeng
Priority: normal Keywords:

Created on 2021-07-26 03:51 by haitanghuadeng, last changed 2022-04-11 14:59 by admin. This issue is now closed.

Messages (2)
msg398208 - (view) Author: Du (haitanghuadeng) Date: 2021-07-26 03:51
When using Sanic, referencing Mapping in collections in SANic-Jinja2 brings ImportError: Cannot import name 'Mapping' from 'collections'. When you use Mapping, shouldn't you call from collections.abc?
msg398209 - (view) Author: Jelle Zijlstra (JelleZijlstra) * (Python committer) Date: 2021-07-26 04:43
This sounds like a bug in the third-party library you're using, not in Python itself. Could you report this bug to the library?

According to https://docs.python.org/3.9/library/collections.html, aliases like collections.Mapping were removed from the collections namespace in 3.10.
History
Date User Action Args
2022-04-11 14:59:47adminsetgithub: 88900
2021-07-26 04:43:59JelleZijlstrasetstatus: open -> closed

nosy: + JelleZijlstra
messages: + msg398209

resolution: third party
stage: resolved
2021-07-26 03:51:36haitanghuadengcreate