[issue21978] Support index access on OrderedDict views (e.g. o.keys()[7])
Ulrich Petri
report at bugs.python.org
Wed Dec 7 10:51:54 EST 2016
Ulrich Petri added the comment:
Should this maybe reconsidered now that dicts are ordered by default?
Having to explain why list is needed in list(some_ordered_dict.values())[0] is a constant thorn in my side when dealing with people new to Python.
----------
nosy: +ulope
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue21978>
_______________________________________
More information about the Python-bugs-list
mailing list