[Python-checkins] python/dist/src/Lib sets.py,1.47,1.48

rhettinger at users.sourceforge.net rhettinger at users.sourceforge.net
Wed Nov 12 10:21:22 EST 2003


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

Modified Files:
	sets.py 
Log Message:
Improve backwards compatibility code to handle True/False.

Index: sets.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/sets.py,v
retrieving revision 1.47
retrieving revision 1.48
diff -C2 -d -r1.47 -r1.48
*** sets.py	8 Sep 2003 19:16:36 -0000	1.47
--- sets.py	12 Nov 2003 15:21:20 -0000	1.48
***************
*** 74,77 ****
--- 74,81 ----
              if not predicate(x):
                  yield x
+     try:
+         True, False
+     except NameError:
+         True, False = (0==0, 0!=0)
  
  __all__ = ['BaseSet', 'Set', 'ImmutableSet']





More information about the Python-checkins mailing list