Martin v. Löwis <mar...@v.loewis.de> added the comment: skreft: since you were asking for a reason why the code looks the way it looks - the code in many cases predates the introduction of iterkeys and friends.
I personally find the names iterkeys/itervalues/iteritems fairly ugly, and rather avoid them for prettiness reasons, unless there is a real problem that requires using iterators. Thankfully, the issue was resolved in Python 3, where .keys() does the right thing (i.e. returning a view). ---------- nosy: +loewis _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue13363> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com