➜

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.

作者 rhettinger
收信人 abarnert, gvanrossum, levkivskyi, lukasz.langa, rhettinger
日期 2017-07-21.07:23:13
SpamBayes Score -1.0
Marked as misclassified 是
Message-id <1500621794.22.0.675372174404.issue25988@psf.upfronthosting.co.za>
In-reply-to
内容
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']
历史
日期 用户 动作 参数
2017-07-21 07:23:14rhettinger修改recipients: + rhettinger, gvanrossum, lukasz.langa, abarnert, levkivskyi
2017-07-21 07:23:14rhettinger修改messageid: <1500621794.22.0.675372174404.issue25988@psf.upfronthosting.co.za>
2017-07-21 07:23:14rhettinger链接issue25988 messages
2017-07-21 07:23:13rhettinger创建