Matteo Dell'Amico <de...@linux.it> added the comment:

I suggest solving the problem by changing the implementation to:

def __iand__(self, c):
    self -= self - c:

or to

def __iand__(self, c):
    for item in self - c:
        self.discard(item)

----------

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

Reply via email to