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 <1236108240.86.0.635834498858.issue5397@psf.upfronthosting.co.za>
In-reply-to
Content
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?
History
Date User Action Args
2009-03-03 19:24:01forestsetrecipients: + forest, georg.brandl, rhettinger, jimjjewett, pitrou, aronacher
2009-03-03 19:24:00forestsetmessageid: <1236108240.86.0.635834498858.issue5397@psf.upfronthosting.co.za>
2009-03-03 19:23:58forestlinkissue5397 messages
2009-03-03 19:23:58forestcreate