Author forest
Recipients aronacher, forest, georg.brandl, jimjjewett, pitrou, rhettinger
Date 2009-03-03.19:23:58
SpamBayes Score 2.46202e-06
Marked as misclassified No
Message-id <>
I was just reading the PEP, and caught this bit:

"Does OrderedDict.popitem() return a particular key/value pair?
Yes. It pops-off the most recently inserted new key and its
corresponding value."

Okay, but I'd also like a convenient and fast way to find the oldest
key, which I think I'd need for an LRU cache.  I didn't notice one in
the patch.  Perhaps I simply missed something.  Shouldn't popitem()
allow the caller to choose which end from which to pop?
Date User Action Args
2009-03-03 19:24:01forestsetrecipients: + forest, georg.brandl, rhettinger, jimjjewett, pitrou, aronacher
2009-03-03 19:24:00forestsetmessageid: <>
2009-03-03 19:23:58forestlinkissue5397 messages
2009-03-03 19:23:58forestcreate