PEP 318 - Function Modifier Syntax
Lulu of the Lotus-Eaters
mertz at gnosis.cx
Tue Jun 10 13:56:06 EDT 2003
|> def foo(self) {'pre': synchronized(lock), 'classmethod': True}:
|> """ Skip Montanaro syntax """
|> perform method operation
| MOD_SYN_METH = {'pre': synchronized(lock), 'classmethod': True}
| def foo(self) MOD_SYN_METH:
I would call the dictionary option dead-in-the-water. Dictionaries do
not have orders, and therefore do not let you specify the order in which
modifiers are applied.
More information about the Python-list
mailing list