[Python-Dev] PEP: Ordered Class Definition Namespace
Eric Snow
ericsnowcurrently at gmail.com
Tue Jun 7 14:53:53 EDT 2016
On Tue, Jun 7, 2016 at 11:45 AM, Ethan Furman <ethan at stoneleaf.us> wrote:
> On 06/07/2016 11:13 AM, Eric Snow wrote:
>> A __definition_order__ in the class body always takes precedence. So
>> a supplied value will be honored (and not replaced with None).
>
> Will the supplied __definition_order__ be made a tuple, and still be
> read-only?
I had planned on leaving a supplied one alone. So no change to tuple.
It remain a read-only attribute though, since that is handled via a
descriptor (a la type.__dict__).
-eric
More information about the Python-Dev
mailing list