[issue37809] Alias typing.NamedTuple to collections
Raymond Hettinger
report at bugs.python.org
Sat Aug 10 12:50:42 EDT 2019
Raymond Hettinger <raymond.hettinger at gmail.com> added the comment:
Further notes for posterity:
* Anything written using collections.NamedTuple would instantly lose its backwards compatibility.
* The casing of NamedTuple is more in line with the typing module: List, Deque, NamedTuple and doesn't fit well with the deque, namedtuple, and ChainMap in the collections module.
* Nothing in the collections module currently requires typing, but NamedTuple can only be used with typing.
* We really don't want to increase import times for collections. This proposal would defeat the entire purpose of having moved _collections_abc to a separate module outside of the collections package.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue37809>
_______________________________________
More information about the Python-bugs-list
mailing list