[Python-Dev] PEP 318 - function/method/class decoration (original) (raw)
Bernhard Herzog bh at intevation.de
Sat Mar 6 12:17:34 EST 2004
- Previous message: [Python-Dev] Re: PEP 318 - function/method/class decoration
- Next message: [Python-Dev] PEP 318 - function/method/class decoration
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Bob Ippolito <bob at redivi.com> writes:
When you give your -1,+0,+1 etc, please do it ONLY for this syntax, and do NOT vote based upon the idea if and only if combined with another syntax
+1
This proposed new syntax is:
funcdef: 'def' NAME parameters ['[' exprlist ']' ] ':' suite classdef: 'class' NAME ['(' testlist ')'] ['[' exprlist ']'] ':' suite
Why are the decorators an exprlist while the base classes are a testlist?
Bernhard
-- Intevation GmbH http://intevation.de/ Skencil http://sketch.sourceforge.net/ Thuban http://thuban.intevation.org/
- Previous message: [Python-Dev] Re: PEP 318 - function/method/class decoration
- Next message: [Python-Dev] PEP 318 - function/method/class decoration
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]