PEP 318

Jess Austin jaustin at post.harvard.edu
Wed Mar 24 06:03:11 CET 2004


Ronald Oussoren <oussoren at cistron.nl> wrote in message news:<mailman.266.1080024073.742.python-list at python.org>...
> On 23-mrt-04, at 1:15, Jess Austin wrote:
> > class foo(object):
> >     def __foo_method(...)
> >         ....
> >     bar = decorator1(__foo_method)
> >     baz = decorator2(__foo_method, arg1, arg2)
> >
> > I can't imagine the exact use for this, but I can imagine that there
> > could be a use.  If the syntax remains as it is, that is.  This PEP
> > seems to shoot itself in the foot in this respect.
> 
> The syntax in PEP318 is syntactic sugar for the most common use of 
> function decorators, the current syntax would still be supported.

That's good to hear.  Should this be made explicit in the PEP?



More information about the Python-list mailing list