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

Phillip J. Eby pje at telecommunity.com
Fri Apr 29 19:08:04 CEST 2005


At 09:38 AM 4/29/05 -0700, Aahz wrote:
>-1 -- the Zen of Python implies that we should be able to tell which
>construct we're using at the beginning of the line.

Hm, maybe we should just use "@", then.  :)

e.g.

     @synchronized(self):
         @with_file("foo") as f:
             # etc.

Although I'd personally prefer a no-keyword approach:

     synchronized(self):
         with_file("foo") as f:
             # etc.




More information about the Python-Dev mailing list