[Python-Dev] Guarantee ordered dict literals in v3.7?

Paul Moore p.f.moore at gmail.com
Tue Nov 7 16:23:13 EST 2017


On 7 November 2017 at 21:13, Chris Barker <chris.barker at noaa.gov> wrote:
> the "only until first deletion" part is really hard -- I hope we don't go
> that route. But I don't think insertion-order is non-obvious -- particularly
> with literals.

But I thought we *had* gone that route. Actually, there's no "route"
to go here. We're only talking about documenting the existing
semantics that cPython has, and I thought that included no longer
guaranteeing insertion order after a delete. Although I can't prove
that by experiment at the moment.

I don't know whether my confusion above is an argument for or against
documenting the behaviour :-)

Paul


More information about the Python-Dev mailing list