PEP 318 - Function Modifier Syntax
Kevin Smith
Kevin.Smith at sas.com
Wed Jun 11 08:02:37 EDT 2003
In <3EE67C20.941FCA51 at alcyone.com> Erik Max Francis wrote:
> A fair point. So if you were able to choose any keyword for this task
> that you wished, which would you choose?
I had considered the word 'using' instead of 'as'. Someone else in this
thread also suggested that. Then the the following def:
def foo(self) using classmethod, synchronized(lock):
blah, blah, blah
reads as:
"Define [a function] foo using [the behaviors of] classmethod and
synchronized"
--
Kevin Smith
Kevin.Smith at sas.com
More information about the Python-list
mailing list