Revised PEP 318 - Function/Method Decorator Syntax

Greg Ewing (using g2h5dqi002 at
Fri Jun 13 04:40:42 CEST 2003

Steven Taschuk wrote:
> Quoth Michele Simionato:
> > class C[Traced,Protected]: pass
> I'd be against such a syntax, fwiw.  Too easy to mistake for the
> normal subclass syntax.

Maybe it would help if the base class parentheses
were required in that case:

   class C()[Traced,Protected]:

although I think I would tend to write it with
a space between:

   class C() [Traced,Protected]:

Greg Ewing, Computer Science Dept,
University of Canterbury,	
Christchurch, New Zealand

More information about the Python-list mailing list