[Python-Dev]
Re: [Python-checkins] python/dist/src/Lib sets.py, 1.47, 1.48
Guido van Rossum
guido at python.org
Wed Nov 12 11:08:12 EST 2003
> 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']
What's this doing in the 2.4 CVS?
--Guido van Rossum (home page: http://www.python.org/~guido/)
More information about the Python-Dev
mailing list