Are decorators really that different from metaclasses...

Arthur ajsiegel at optonline.com
Thu Aug 26 09:00:41 EDT 2004


On Thu, 26 Aug 2004 21:05:46 +1000, Anthony Baxter
<anthonybaxter at gmail.com> 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
foo().

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
;)

Art



More information about the Python-list mailing list