Revised PEP 318 - Function/Method Decorator Syntax

A. Lloyd Flanagan alloydflanagan at attbi.com
Fri Jun 13 18:23:53 CEST 2003


"Greg Ewing (using news.cis.dfn.de)" <g2h5dqi002 at sneakemail.com> wrote in message news:<bcbc8b$hf4ub$3 at ID-169208.news.dfncis.de>...
...
> 
> Maybe it would help if the base class parentheses
> were required in that case:
> 
>    class C()[Traced,Protected]:

I like that.

I actually consider it a wart that I can't say:
class x():
    def __init__(self):
        print "hi"

In fact I'd be just as happy to see the option to omit the parentheses
go away altogether.




More information about the Python-list mailing list