[Python-3000] PEP 3115: Actual use cases for odd metaclasses? Alternate syntax.
Charles Merriam
charles.merriam at gmail.com
Sun Dec 23 05:06:42 CET 2007
Could you provide some more information? One can define behavior as
simply as wrapping an indirection around each method of a class. I'd welcome
pointers to the additional cases.
Thank you,
Charles
On Dec 22, 2007 4:57 AM, Christian Tanzer <tanzer at swing.co.at> wrote:
>
> "Charles Merriam" <charles.merriam at gmail.com> wrote:
>
> > I gave a talk last week that included Metaclasses. From what I've
> > read, there seems to be only one use case for metaclasses: go through
> > and play with the attributes when the class is created.
>
> A metaclass can define behavior for its classes. I'm using that quite
> a bit.
>
> --
> Christian Tanzer http://www.c-tanzer.at/
>
>
More information about the Python-3000
mailing list