[Python-Dev] Suggesting '.' decorators (PEP318)

Heiko Wundram heikowu at ceosg.de
Sat Aug 7 11:28:56 CEST 2004


Am Samstag, 7. August 2004 06:55 schrieb Kevin J. Butler:
> The following makes sense to me, uses previously invalid syntax, and
> uses the '.' punctuation in a way similar to existing/proposed usage:
>
>        def longMethodNameForEffect(longArgumentOne=None,
>                                    longArgumentTwo=42):
>            .staticmethod
>            .funcattrs(grammar="'@' dotted_name [ '(' [arglist] ')' ]",
>                       status="experimental", author="BDFL")
>            """
>            asdfasdf
>            """
>            raise NotYetImplemented

-1

Same objection from me as to the proposal of decorating with | in the 
function: it simply takes away the actual meaning from the decorator (which 
actually is to make it very clear to see that the function is special in some 
way).

Heiko.


More information about the Python-Dev mailing list