[Python-Dev] Re: new syntax for wrapping (PEP 318)

Skip Montanaro skip at pobox.com
Thu Feb 26 16:06:07 EST 2004


    Russell> I would rather focus on the heart of PEP 318 and try to make class and 
    Russell> static methods easier to declare, e.g. something like:

    Russell> def classmethod foo(self, ...):

    Russell> If one supports arbitrary modifier functions and lists of
    Russell> modifier functions I think readability is really going to
    Russell> suffer.

-1.  If you tie the specific decorators into the language syntax I think you
will find it too limiting in the long run (perhaps even in the short run).
I suspect many of the planned uses for such an extension will not simply be
to define class or static methods.

Skip



More information about the Python-Dev mailing list