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

[Python-Dev] PEP 340 - possible new name for block-statement

[Python-Dev] PEP 340 - possible new name for block-statement [Python-Dev] PEP 340 - possible new name for block-statementRodrigo B. de Oliveira rodrigobamboo at gmail.com
Sat Apr 30 01:15:12 CEST 2005
On 4/29/05, Guido van Rossum <gvanrossum at gmail.com> wrote:
> [Phillip J. Eby]
> > Although I'd personally prefer a no-keyword approach:
> >
> >      synchronized(self):
> >          with_file("foo") as f:
> >              # etc.
> 
> I'd like that too, but it was shot down at least once. Maybe we can
> resurrect it?
> 
>     opening("foo") as f:
>         # etc.
> 
> is just a beauty!
> 

Yes. I like it.

EXPRESSION [as VAR]:
    BLOCK

lock(self._monitor): # typing synchronized freaks me out
    spam()

using(DB.open()) as conn:
    eggs(conn)
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