Serhiy Storchaka added the comment:

The patch makes set_add_entry() inconsistent not only with dict, but with other 
set methods that use set_lookkey(). I don't know if there is some subtle bug 
here, but I feel myself slightly uncomfortable with it. Also the new code looks 
a little less readable to me. Current code is straightforward translation from 
Python to C (first check error, then check that the result still is actual, 
finally check the result itself), the new code forces you to stop and think, 
it's correctness is not so obvious.

Even if all good with the patch, please don't commit it right now. Wait at 
least a week and then commit. May be someone other will find a flaw in the 
patch.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue24681>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to