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.

Author mark.dickinson
Recipients mark.dickinson, paul.moore, rhettinger, stcanny, steve.dower, tim.golden, zach.ware
Date 2021-11-10.15:53:21
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1636559601.17.0.760832874149.issue45776@roundup.psfhosted.org>
In-reply-to
Content
On Mac, collections.abc is imported at startup time via site.py (which imports rlcompleter, which imports inspect, which imports collections.abc). I'd guess it's the same on Linux.

mdickinson@mirzakhani cpython % ./python.exe
Python 3.11.0a2+ (heads/main:76d14fac72, Nov 10 2021, 15:43:54) [Clang 13.0.0 (clang-1300.0.29.3)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys; "collections.abc" in sys.modules
True
>>> ^D
mdickinson@mirzakhani cpython % ./python.exe -S
Python 3.11.0a2+ (heads/main:76d14fac72, Nov 10 2021, 15:43:54) [Clang 13.0.0 (clang-1300.0.29.3)] on darwin
>>> import sys; "collections.abc" in sys.modules
False
>>> ^D
History
Date User Action Args
2021-11-10 15:53:21mark.dickinsonsetrecipients: + mark.dickinson, rhettinger, paul.moore, tim.golden, zach.ware, steve.dower, stcanny
2021-11-10 15:53:21mark.dickinsonsetmessageid: <1636559601.17.0.760832874149.issue45776@roundup.psfhosted.org>
2021-11-10 15:53:21mark.dickinsonlinkissue45776 messages
2021-11-10 15:53:21mark.dickinsoncreate