Daniel Stutzbach <dan...@stutzbachenterprises.com> added the comment:

Patch with unit test attached for MutableSet's:

x ^= x
x -= x

I was wrong about |= and &= having a problem.  Since they don't mutate the set, 
they don't raise an exception (they only .add items that are already in the 
set).  I added tests for them but left the implementation alone.

----------
keywords: +needs review, patch
stage: unit test needed -> patch review
Added file: http://bugs.python.org/file17432/set-isub.patch

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

Reply via email to