[issue20729] mailbox.Mailbox does odd hasattr() check

Serhiy Storchaka report at bugs.python.org
Sat Feb 22 22:40:37 CET 2014


Serhiy Storchaka added the comment:

Note that there is a difference between Mailbox and dict interface: __iter__() 
iterates over values, not keys.

clear() should use keys(), not iterkeys(), because it modifies iterated dict.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue20729>
_______________________________________


More information about the Python-bugs-list mailing list