Serhiy Storchaka added the comment:

I don't have good real-world example. Actually dict is used more often than set 
in such cases.

I agree with your arguments Raymond, in particular about your ranging of cases. 
But even if the bad case is hundreds times more rare than the good case, the 
total effect can be negative if the negative effect of the bad case is hundreds 
times larger that the positive effect of the good case. I checked timing just 
to be sure and was unpleasantly surprised that the negative effect is so large.

----------

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

Reply via email to