[Python-Dev] PEP 487: Simpler customization of class creation (original) (raw)
Eric Snow ericsnowcurrently at gmail.com
Tue Jun 21 20:41:53 EDT 2016
- Previous message (by thread): [Python-Dev] PEP 487: Simpler customization of class creation
- Next message (by thread): [Python-Dev] PEP 487: Simpler customization of class creation
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Tue, Jun 21, 2016 at 11:18 AM, Guido van Rossum <guido at python.org> wrote:
If we had had these semantics in the language from the start, there would have been plenty uses of this order, and I suspect nobody would have considered asking for definitionorder.
True. The key thing that definition_order provides is an explicit relationship with the class definition. Since we have the opportunity to capture that now, I think we should take it, regardless of the type of the class definition namespace or even of cls.dict. For me the strong association with the order in the class definition is worth having.
-eric
- Previous message (by thread): [Python-Dev] PEP 487: Simpler customization of class creation
- Next message (by thread): [Python-Dev] PEP 487: Simpler customization of class creation
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]