[Python-3000] PEP 3115: Actual use cases for odd metaclasses? Alternate syntax.

Michele Simionato michele.simionato at gmail.com
Sun Jan 13 18:58:57 CET 2008


> On Jan 13, 2008 9:37 AM, Charles Merriam <charles.merriam at gmail.com> wrote:
> > Well, I'm explicitly dropping this.   So far no one has pointed out
> > any use cases that are not equivalent to intercepting an array of the
> > namespace in the __init__() of a  subclass of type, then calling
> > type's __init__() on the modified namespace.

There are many use cases. For instance in
http://stacktrace.it/articoli/2008/01/metaclassi-python-3000/
I discuss operator overloading on records. The paper is in Italian,
but you can  just look at
the code and at the examples.

    Michele Simionato


More information about the Python-3000 mailing list