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-April/052971.html below:

[Python-Dev] Re: anonymous blocks

[Python-Dev] Re: anonymous blocks [Python-Dev] Re: anonymous blocksMichael Hudson mwh at python.net
Tue Apr 26 16:26:27 CEST 2005
On 26 Apr 2005, at 15:13, Michael Hudson wrote:

> So, here's a counterproposal!

And a correction!

> with expr as var:
>    ... code ...
>
> is roughly:

def _(var):
     ... code ...
try:
     expr(_)
except Return, e:
     return e.value

Cheers,
mwh

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