[Python-Dev] Re: method decorators (PEP 318)

Samuele Pedroni pedronis at bluewin.ch
Sun Mar 28 07:36:43 EST 2004


At 12:51 28.03.2004 +0100, Paul Moore wrote:

>1. Available as soon as decorators are:
>
>     def foo[publish("http://directory/directory")](self):
>         ...

the in-between one seems really the most confusing placement, and I don't 
know of many languages tha put modifiers in such a syntactic position.

>2. Available as soon as decorators are, but still has significant
>    information at the end of the function body
>
>     def foo [publish](self):
>         ...
>     foo.url = "http://directory/directory"

in general depending on when the decorator needs the value, this may or may 
not work. 




More information about the Python-Dev mailing list