[issue5397] PEP 372: OrderedDict

Forest Wilkinson report at bugs.python.org
Tue Mar 3 20:39:44 CET 2009


Forest Wilkinson <forest at users.sourceforge.net> added the comment:

> Shouldn't popitem() allow the caller to choose which end from
> which to pop?

Thinking it through a bit more, and LRU cache would actually need to
access the oldest item without necessarily removing it.  Besides,
popitem() should probably retain the signature of dict.popitem().  I
think I'll take this matter to python-dev.

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue5397>
_______________________________________


More information about the Python-bugs-list mailing list