[Python-Dev] PEP 318 - function/method/class decoration (original) (raw)
Bob Ippolito bob at redivi.com
Sat Mar 6 12:39:36 EST 2004
- Previous message: [Python-Dev] PEP 318 - function/method/class decoration
- Next message: [Python-Dev] PEP 318 - function/method/class decoration
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Mar 6, 2004, at 12:17 PM, Bernhard Herzog wrote:
Bob Ippolito <bob at redivi.com> writes:
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?
The testlist is the list of base classes.. In both cases, the decorators are an '[' exprlist ']'
-bob
- Previous message: [Python-Dev] PEP 318 - function/method/class decoration
- Next message: [Python-Dev] PEP 318 - function/method/class decoration
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]