PEP 318 - Function Modifier Syntax
Greg Ewing (using news.cis.dfn.de)
g2h5dqi002 at sneakemail.com
Tue Jun 10 23:16:33 EDT 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
hurt...
--
Greg Ewing, Computer Science Dept,
University of Canterbury,
Christchurch, New Zealand
http://www.cosc.canterbury.ac.nz/~greg
More information about the Python-list
mailing list