[issue24681] Put most likely test first in set_add_entry()

Serhiy Storchaka report at bugs.python.org
Wed Jul 22 15:22:36 CEST 2015


Serhiy Storchaka added the comment:

The patch changes behavior. With the patch it would be possible that after successful set.add(), the item will be not contained in the set. And this behavior is not consistent with dict behavior.

----------

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


More information about the Python-bugs-list mailing list