Revised PEP 318 - Function/Method Decorator Syntax

Greg Ewing (using news.cis.dfn.de) g2h5dqi002 at sneakemail.com
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
http://www.cosc.canterbury.ac.nz/~greg





More information about the Python-list mailing list