Three questions:

Would the new __initclass__ function be usable with actual full-blown 
metaclasses?


The PEP says this:

If present on the created object, this new hook will be called by the class 
creation machinery after the __class__ reference has been initialised.

Given that statement, and this example:

    class A:
        def __initclass__(cls):
            # do stuff

    class B(A):
        pass

am I correct that A's __initclass__ will not run when B is created?


Where are we at with being ready for pronouncement?


--
~Ethan~
_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
https://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to