Decorator syntax

Istvan Albert ialbert at mailblocks.com
Thu Aug 5 16:58:07 EDT 2004


Mark 'Kamikaze' Hughes wrote:


> class foo:
>     def introduceNewFeature(self, someArgument, anotherArgument): [synchronized, types="o,i,i"]
>         pass # whatever

Those who need argument type-checking should
go to Guido and talk to him about it. Piggybacking
this in as decorators makes everybody lose.

> 3) A large proportion of Python programmers are also Java programmers,
>    and won't object to the @-syntax.

yay. love is in the air.

Istvan.




More information about the Python-list mailing list