Eric V. Smith added the comment: On 09/17/2013 09:34 AM, R. David Murray wrote: > > R. David Murray added the comment: > > Because most often the time at which you want the original key is the point > at which you are about to re-serialize the data...so you need the value too.
I can't think of a case where I'd need (original_key, value) where I wouldn't also be iterating over items(). Especially so if I'm serializing. On the other hand, I don't have a use case for the original key, anyway. So I don't have a strong feeling about this, other than it feels odd that the answer to the original question (I think on python-dev) "how do we get the original key back?" is answered by "by giving you the original key and its value". ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue18986> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com