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/2006-March/062143.html below:

[Python-Dev] "as" mania

[Python-Dev] "as" mania [Python-Dev] "as" maniaJosiah Carlson jcarlson at uci.edu
Tue Mar 7 19:25:54 CET 2006
Georg Brandl <g.brandl at gmx.net> wrote:
> or something like
> 
> m = re.match(...)
> if m.group(1) as filename:
>     do something with filename

Except that m could be None, which would raise an exception during the
.group(1) call.  Perhaps you meant...

m = re.match(...)
if m and m.group(1) as filename:
    do something with filename


I'm -1 on the 'as'-itis.
 - Josiah

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