RELEASED Python 2.4, alpha 2

Ivan Voras ivoras at
Thu Aug 5 23:18:54 CEST 2004

Heiko Wundram wrote:

> class someobject(object):
>     @synchronized
>     @classmethod
>     def x(cls):
>         pass
> If I were to translate this to english, I could read it as follows (note the 
> order):
> Define a _class someobject_ which has a _synchronized_ _classmethod_ x.

FWIW, I, for example, don't have a problem with the notion of 
decorators, but I think the above syntax is just plain ugly. Why not use:

def @synchronized @classmethod x(self):


Granted that the keywords are long-ish, but I stongly feel it's still 
less ugly than the topmost version.

What part of "Ph'nglui mglw'nath Cthulhu R'lyeh wgah'nagl fhtagn" don't
you understand?

More information about the Python-list mailing list