[Python-Dev] PEP 318 - function/method/class decoration

Greg Ewing greg at cosc.canterbury.ac.nz
Sun Mar 7 18:27:04 EST 2004


> This proposed new syntax is:
> 
> 	funcdef: 'def' NAME parameters ['[' exprlist ']' ] ':' suite
> 
> 	classdef: 'class' NAME ['(' testlist ')'] ['[' exprlist ']'] ':' suite

+1

Greg Ewing, Computer Science Dept, +--------------------------------------+
University of Canterbury,	   | A citizen of NewZealandCorp, a	  |
Christchurch, New Zealand	   | wholly-owned subsidiary of USA Inc.  |
greg at cosc.canterbury.ac.nz	   +--------------------------------------+



More information about the Python-Dev mailing list