Revised PEP 318 - Function/Method Decorator Syntax

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

"Greg Ewing (using" <g2h5dqi002 at> wrote in message news:<bcbc8b$hf4ub$3 at>...
> 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