Forest Wilkinson <for...@users.sourceforge.net> added the comment: 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? ---------- nosy: +forest _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue5397> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com