Are decorators really that different from metaclasses...
Paul Morrow
pm_mon at yahoo.com
Thu Aug 26 09:50:43 EDT 2004
Errata. Please change the paragraph...
>
> Ok. Then let's jettison the baggage with the word metaclass and just
> call them 'magic attributes'. It doesn't matter. The essential point
> about them is that they almost /never have 'local variable' semantics/.
> They are attributes of the object being defined. That's the point I'm
> trying to drive home here. When we use __xxx__ attributes, we are not
> intending to create local variables. No. We are making declarations.
>
...to...
Ok. Then let's jettison the baggage with the word metadata and just
call them 'magic attributes'. It doesn't matter. The essential point
about them is that they almost /never have 'local variable' semantics/.
They are attributes of the object being defined. That's the point I'm
trying to drive home here. When we define __xxx__ attributes, we are
not intending to create local variables. No. We are making declarations.
Paul
More information about the Python-list
mailing list