cpython: 62b6ecd1e463 (original) (raw)

Mercurial > cpython

changeset 86275:62b6ecd1e463

Issue #19218: set __name__ of _collections_abc to collections.abc in order to fix tests and keep beautiful qualified names. [#19218]

Christian Heimes christian@cheimes.de
date Sun, 13 Oct 2013 02:21:33 +0200
parents 7ea831581af4
children af6975b4aa06
files Lib/_collections_abc.py
diffstat 1 files changed, 6 insertions(+), 0 deletions(-)[+] [-] Lib/_collections_abc.py 6

line wrap: on

line diff

--- a/Lib/_collections_abc.py +++ b/Lib/_collections_abc.py @@ -18,6 +18,12 @@ import sys "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)