A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2013-September/128694.html below:

[Python-Dev] PEP 422: Simpler customisation of class creation

[Python-Dev] PEP 422: Simpler customisation of class creation [Python-Dev] PEP 422: Simpler customisation of class creationEthan Furman ethan at stoneleaf.us
Sun Sep 15 16:19:32 CEST 2013
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~
More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4