[Python-checkins] python/dist/src/Lib sets.py,1.22,1.23
tim_one@users.sourceforge.net
tim_one@users.sourceforge.net
Sun, 25 Aug 2002 11:59:06 -0700
Update of /cvsroot/python/python/dist/src/Lib
In directory usw-pr-cvs1:/tmp/cvs-serv29910/Lib
Modified Files:
sets.py
Log Message:
Added a clue about why xyz_update isn't the same as __xyz__.
Index: sets.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/sets.py,v
retrieving revision 1.22
retrieving revision 1.23
diff -C2 -d -r1.22 -r1.23
*** sets.py 25 Aug 2002 18:43:10 -0000 1.22
--- sets.py 25 Aug 2002 18:59:04 -0000 1.23
***************
*** 362,366 ****
raise TypeError, "Can't hash a Set, only an ImmutableSet."
! # In-place union, intersection, differences
def __ior__(self, other):
--- 362,369 ----
raise TypeError, "Can't hash a Set, only an ImmutableSet."
! # In-place union, intersection, differences.
! # Subtle: The xyz_update() functions deliberately return None,
! # as do all mutating operations on built-in container types.
! # The __xyz__ spellings have to return self, though.
def __ior__(self, other):