[Python-Dev] PEP 520: Preserving Class Attribute Definition Order (round 5) (original) (raw)

Armin Rigo arigo at tunes.org
Mon Jun 27 02:34:28 EDT 2016


Hi,

On 24 June 2016 at 23:52, Eric Snow <ericsnowcurrently at gmail.com> wrote:

Pending feedback, the impact on Python implementations is expected to be minimal. If a Python implementation cannot support switching to `OrderedDict-by-default then it can always set _definitionorder__ _to None``.

That's wishful thinking. Any Python implementation that sets __definition_order__ to None where CPython sets it to something useful is likely going to break programs and be deemed not fully compatible. (Note: this PEP is not a problem for PyPy.)

A bientôt,

Armin.



More information about the Python-Dev mailing list