elements of decorator syntax suggestions

Tim Peters tim.peters at gmail.com
Sat Aug 7 01:52:28 EDT 2004


[Michele Simionato]
> What about "-" ?
>
> - syncronized

That's already (pre-2.4) valid Python, so could change the meaning of
existing code -- won't happen.

> - classmethod
> def f(cls, *args):
>   pass
>
>
> Any punctuation already used in current Python
> would go for me (., :, -, +, *, /, |, \, ^, etc. etc.) !

Overloading a unary prefix operator is out.  As Anthony said, vertical
bar seemed to be the leading contender on python-dev Friday.  You can
find tedious arguments there about most of the others that would go
for you.



More information about the Python-list mailing list