A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2004-August/047720.html below:

[Python-Dev] @decorator now w/ class support [was: pep 318, Decorators for Functions, Methods and Classes]

[Python-Dev] @decorator now w/ class support [was: pep 318, Decorators for Functions, Methods and Classes]Jack Diederich jack at performancedrivers.com
Thu Aug 12 17:03:54 CEST 2004
On Thu, Aug 12, 2004 at 11:39:35AM +0100, Michael Hudson wrote:
> "Phillip J. Eby" <pje at telecommunity.com> writes:
> 
> > At 03:44 PM 8/11/04 -0400, Jack Diederich wrote:
> >> I have a mostly working patch for class decorators but it gets an
> >> XXX ambiguity
> >>between
> >>
> >>funcdef: [decorators] 'def' NAME parameters ':' suite
> >>and
> >>classdef: [decorators] 'class' NAME [ '(' testlist ')' ] ':' suite
> >>
> >> It works as advertised with the pre-decorators funcdef definition
> >> (which removes the ambiguity).
> >>Help?
> >
> >
> > How about this?
> >
> >      decorated_assignment: [decorators] (funcdef | classdef)
> 
> decorated_definition or something would be better surely?

I ended up going with 'decorated_thing'
http://python.org/sf/1007991

decorator code moved out of the function code and will decorate
both functions and classes.

-Jack
More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4