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

2013-09-15 Thread Nick Coghlan
On 16 September 2013 00:19, Ethan Furman wrote: > Three questions: > > > Would the new __initclass__ function be usable with actual full-blown > metaclasses? Sure (as long as the metaclass in question called it at the appropriate time, which those inheriting from type would do automatically)). >

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

2013-09-15 Thread Ethan Furman
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,