Are decorators really that different from metaclasses...

Arthur ajsiegel at
Thu Aug 26 15:00:41 CEST 2004

On Thu, 26 Aug 2004 21:05:46 +1000, Anthony Baxter
<anthonybaxter at> wrote:
>def foo():
>    __name__ = '%s_banana'%(__name__) 

I'm not sure what you are driving at here, but ...

Aa a practical matter, wouldn't it be nice to be able to use string
substitution on a docstring placed in its usual location under def

That I need to place my __doc__ under the function can't be considered
a good thing, or intutive thing.

Sort of like having to do transformations after and under the function


More information about the Python-list mailing list