Message83083
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:01 | forest | set | recipients:
+ forest, georg.brandl, rhettinger, jimjjewett, pitrou, aronacher |
2009-03-03 19:24:00 | forest | set | messageid: <1236108240.86.0.635834498858.issue5397@psf.upfronthosting.co.za> |
2009-03-03 19:23:58 | forest | link | issue5397 messages |
2009-03-03 19:23:58 | forest | create | |
|