[Python-checkins] python/dist/src/Lib sets.py,1.38,1.39
rhettinger@users.sourceforge.net
rhettinger@users.sourceforge.net
Sun, 02 Feb 2003 08:07:55 -0800
Update of /cvsroot/python/python/dist/src/Lib
In directory sc8-pr-cvs1:/tmp/cvs-serv7462
Modified Files:
sets.py
Log Message:
One more use of ifilter()
Index: sets.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/sets.py,v
retrieving revision 1.38
retrieving revision 1.39
diff -C2 -d -r1.38 -r1.39
*** sets.py 2 Feb 2003 14:27:19 -0000 1.38
--- sets.py 2 Feb 2003 16:07:53 -0000 1.39
***************
*** 437,443 ****
self._binary_sanity_check(other)
data = self._data
! for elt in other:
! if elt in data:
! del data[elt]
return self
--- 437,442 ----
self._binary_sanity_check(other)
data = self._data
! for elt in ifilter(data.has_key, other):
! del data[elt]
return self