Are decorators really that different from metaclasses...

Anthony Baxter anthonybaxter at
Mon Aug 30 05:44:17 CEST 2004

On Sun, 29 Aug 2004 13:34:52 -0400, Paul Morrow <pm_mon at> wrote:
> > Have you seen a significant number of cases where a function uses
> > __xxx__ attributes as local variables?  Have you seen any?

Locals, no. But builtins, yes. For instance, __import__.

So your proposal suddently has to deal with looking up _only_ locals,
not globals or builtins.

I have asked this indirectly, and Jeff Epler's asked it more
obviously, so, to restate it:

Have you actually got a concrete, written down proposal? Have you
worked through how it might work, and what the impact on the language
might be? I was hoping that you'd sit down and do what Bengt Richter
did and posted to the newsgroup - worked out how this stuff works,
under the hood, so that you weren't just hand-waving. Oh well.

More information about the Python-list mailing list