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/2005-March/052023.html below:

[Python-Dev] rationale for the no-new-features approach

[Python-Dev] rationale for the no-new-features approach [Python-Dev] rationale for the no-new-features approachSkip Montanaro skip at pobox.com
Wed Mar 9 14:03:52 CET 2005
    Anthony> Goal 4: Try and prevent something like
    Anthony>             try:
    Anthony>                   True, False
    Anthony>             except NameError:
    Anthony>                   True, False = 1, 0
    Anthony>             from ever ever happening again. 

I will point out that in the transition from 2.3 to 2.4 our code that uses
sets has

    try:
        x = set
    except NameError:
        from sets import Set as set
    else:
        del x

Rather ugly.  I suppose I could just put the necessary incantation in
sitecustomize to dump the set name in builtins, but it would be kinda nice
if this sort of thing could be avoided in the future.

Skip
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