Are decorators really that different from metaclasses...
Anthony Baxter
anthonybaxter at gmail.com
Thu Aug 26 10:53:51 EDT 2004
On Thu, 26 Aug 2004 14:40:18 GMT, Arthur <ajsiegel at optonline.com> wrote:
> >IMO, to change it inside of a function def should be (but isn't) as easy
> >as...
> >
> > >>> def foo():
> > ... """ I am foo """
> > ... __doc__ = __doc__ + 'indeed'
> >
> >Paul
>
> Yes. Not only do I follow, but I think we came to exactly the same
> place, from very different directions, and coming from what I sense is
> very different backgrounds.
>
> Its just that I don't think many others seem to find that as
> interesting as I happen to.
Not so much that, as running out of ways to restate myself. The
proposed syntax above still requires magic handling of double-under
variables in a function, and a new namespace. I can't see how you can
think that this is a _good_ thing.
More information about the Python-list
mailing list