Author rhettinger
Recipients abarnert, gvanrossum, levkivskyi, lukasz.langa, rhettinger
Date 2017-07-21.07:23:13
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1500621794.22.0.675372174404.issue25988@psf.upfronthosting.co.za>
In-reply-to
Content
Guido, do you think there is some way to decouple collections.abc from spilling into the namespace for non-abc collections module?

At the interactive prompt, running dir() on collections gives an alphabetical hodgepodge of the two modules.  To my eyes, it is difficult to discern the concrete from the abstract.

>>> dir(collections)
['AsyncGenerator', 'AsyncIterable', 'AsyncIterator', 'Awaitable', 'ByteString', 'Callable', 'ChainMap', 'Collection', 'Container', 'Coroutine', 'Counter', 'Generator', 'Hashable', 'ItemsView', 'Iterable', 'Iterator', 'KeysView', 'Mapping', 'MappingView', 'MutableMapping', 'MutableSequence', 'MutableSet', 'OrderedDict', 'Reversible', 'Sequence', 'Set', 'Sized', 'UserDict', 'UserList', 'UserString', 'ValuesView', '_Link', '_OrderedDictItemsView', '_OrderedDictKeysView', '_OrderedDictValuesView', '__all__', '__builtins__', '__cached__', '__doc__', '__file__', '__loader__', '__name__', '__package__', '__path__', '__spec__', '_chain', '_class_template', '_collections_abc', '_count_elements', '_eq', '_field_template', '_heapq', '_iskeyword', '_itemgetter', '_proxy', '_recursive_repr', '_repeat', '_repr_template', '_starmap', '_sys', 'abc', 'defaultdict', 'deque', 'namedtuple']
History
Date User Action Args
2017-07-21 07:23:14rhettingersetrecipients: + rhettinger, gvanrossum, lukasz.langa, abarnert, levkivskyi
2017-07-21 07:23:14rhettingersetmessageid: <1500621794.22.0.675372174404.issue25988@psf.upfronthosting.co.za>
2017-07-21 07:23:14rhettingerlinkissue25988 messages
2017-07-21 07:23:13rhettingercreate