[Python-Dev] PEP 520: Ordered Class Definition Namespace (original) (raw)
Nikita Nemkin nikita at nemkin.ru
Tue Jun 14 05:41:39 EDT 2016
- Previous message (by thread): [Python-Dev] PEP 520: Ordered Class Definition Namespace
- Next message (by thread): [Python-Dev] PEP 520: Ordered Class Definition Namespace
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Is there any rationale for rejecting alternatives like:
- Adding standard metaclass with ordered namespace.
- Adding
namespace
orordered
args to the default metaclass. - Making compiler fill in definition_order for every class (just like qualname) without touching the runtime. ?
To me, any of the above seems preferred to complicating the core part of the language forever.
The vast majority of Python classes don't care about their member order, this is minority use case receiving majority treatment.
Also, wiring OrderedDict into class creation means elevating it from a peripheral utility to indispensable built-in type.
- Previous message (by thread): [Python-Dev] PEP 520: Ordered Class Definition Namespace
- Next message (by thread): [Python-Dev] PEP 520: Ordered Class Definition Namespace
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]