[issue8425] a -= b should be fast if a is a small set and b is a large set

Alexander Belopolsky report at bugs.python.org
Mon May 10 20:13:08 CEST 2010


Alexander Belopolsky <belopolsky at users.sourceforge.net> added the comment:

On the second thought, it is possible to preserve set identity and avoid iteration over a large set.   See issue8425a.diff attached.

It looks like the unit tests don't check identity preservation.  I will submit additional tests shortly.

----------
Added file: http://bugs.python.org/file17283/issue8425a.diff

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


More information about the Python-bugs-list mailing list