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/052230.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 approachGregory P. Smith greg at electricrain.com
Wed Mar 16 23:26:11 CET 2005
On Fri, Mar 11, 2005 at 06:47:11PM -0500, Bob Ippolito wrote:
> 
> On Mar 11, 2005, at 2:26 PM, Skip Montanaro wrote:
> 
> >
> >    Bob> try:
> >    Bob>      set
> >    Bob> except NameError:
> >    Bob>      from sets import Set as set
> >
> >    Bob> You don't need the rest.
> >
> >Sure, but then pychecker bitches about a statement that appears to 
> >have no
> >effect. ;-)
> 
> Well then fix PyChecker to look for this pattern :)
> 
> -bob

or make it even uglier to hide from pychecker by writing that as:

exec("""
try:
    set
except NameError:
    from sets import Set as set
""")

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