[Python-checkins] python/dist/src/Lib sets.py,1.44.8.4,1.44.8.5
rhettinger at users.sourceforge.net
rhettinger at users.sourceforge.net
Wed Nov 12 10:22:00 EST 2003
Update of /cvsroot/python/python/dist/src/Lib
In directory sc8-pr-cvs1:/tmp/cvs-serv27620
Modified Files:
Tag: release23-maint
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.44.8.4
retrieving revision 1.44.8.5
diff -C2 -d -r1.44.8.4 -r1.44.8.5
*** sets.py 22 Sep 2003 04:42:56 -0000 1.44.8.4
--- sets.py 12 Nov 2003 15:21:57 -0000 1.44.8.5
***************
*** 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