[issue5397] PEP 372: OrderedDict
Georg Brandl
report at bugs.python.org
Sun Mar 1 13:48:28 CET 2009
Georg Brandl <georg at python.org> added the comment:
Doc nits:
* "items are returned in the order they were first added": it should be
made clear that it matters when the *key* was first added
* "An *OrderedDict* remembers order that entries were inserted": misses
a word somewhere?
* "OrderDict" should be "OrderedDict"
* "compare their ordered :attr:`items` list": ... lists?
Implementation nits:
* "raise TypeError('expected at 1 argument, got %d', len(args))"
should read "at most" and use "%" instead of ","
* "raise KeyError" in popitem(): should it get a message?
* eval()ing the repr() will not construct the dict in the same order
----------
nosy: +aronacher, georg.brandl
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue5397>
_______________________________________
More information about the Python-bugs-list
mailing list