summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Lib/_collections_abc.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/Lib/_collections_abc.py b/Lib/_collections_abc.py
index d19e5925a0..faa1ff22ff 100644
--- a/Lib/_collections_abc.py
+++ b/Lib/_collections_abc.py
@@ -18,6 +18,12 @@ __all__ = ["Hashable", "Iterable", "Iterator",
"ByteString",
]
+# This module has been renamed from collections.abc to _collections_abc to
+# speed up interpreter startup. Some of the types such as MutableMapping are
+# required early but collections module imports a lot of other modules.
+# See issue #19218
+__name__ = "collections.abc"
+
# Private list of types that we want to register with the various ABCs
# so that they will pass tests like:
# it = iter(somebytearray)