[Python-checkins] python/dist/src/Lib sets.py,1.35,1.36

rhettinger@users.sourceforge.net rhettinger@users.sourceforge.net
Mon, 25 Nov 2002 12:43:57 -0800


Update of /cvsroot/python/python/dist/src/Lib
In directory sc8-pr-cvs1:/tmp/cvs-serv21003

Modified Files:
	sets.py 
Log Message:
SF 643115:  Set._update() had a special case for dictionaries which allowed
non-true values to leak in.  This threw-off equality testing which depends
on the underlying dictionaries having both the same keys and values.



Index: sets.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/sets.py,v
retrieving revision 1.35
retrieving revision 1.36
diff -C2 -d -r1.35 -r1.36
*** sets.py	13 Nov 2002 19:34:25 -0000	1.35
--- sets.py	25 Nov 2002 20:43:54 -0000	1.36
***************
*** 316,322 ****
              data.update(iterable._data)
              return
-         if isinstance(iterable, dict):
-             data.update(iterable)
-             return
  
          value = True
--- 316,319 ----