A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2003-November/040205.html below:

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

[Python-Dev] Re: [Python-checkins] python/dist/src/Lib sets.py, 1.47, 1.48Guido 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

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