> 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/)
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4