PEP 318 - Function Modifier Syntax

Greg Ewing (using g2h5dqi002 at
Wed Jun 11 05:16:33 CEST 2003

Roman Suzi wrote:
> On Mon, 9 Jun 2003, Erik Max Francis wrote:
>>Kevin Smith wrote:
>>>        def foo(self) as synchronized(lock), classmethod:

> the syntax is confusing, because "as" already has a meaning of
> "to be known as":

So maybe it needs to be

   def foo(self) as a synchronized(lock), classmethod:

"as" is already a pseudo-keyword, so one more shouldn't

Greg Ewing, Computer Science Dept,
University of Canterbury,	
Christchurch, New Zealand

More information about the Python-list mailing list