(original) (raw)
changeset: 86275:62b6ecd1e463 user: Christian Heimes christian@cheimes.de date: Sun Oct 13 02:21:33 2013 +0200 files: Lib/_collections_abc.py description: Issue #19218: set __name__ of _collections_abc to collections.abc in order to fix tests and keep beautiful qualified names. diff -r 7ea831581af4 -r 62b6ecd1e463 Lib/_collections_abc.py --- a/Lib/_collections_abc.py Sun Oct 13 02:04:50 2013 +0200 +++ b/Lib/_collections_abc.py Sun Oct 13 02:21:33 2013 +0200 @@ -18,6 +18,12 @@ "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) /christian@cheimes.de