[Python-Dev] Guarantee ordered dict literals in v3.7? (original) (raw)
Paul Moore p.f.moore at gmail.com
Fri Dec 15 13:29:18 EST 2017
- Previous message (by thread): [Python-Dev] Guarantee ordered dict literals in v3.7?
- Next message (by thread): [Python-Dev] Guarantee ordered dict literals in v3.7?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On 15 December 2017 at 18:19, Serhiy Storchaka <storchaka at gmail.com> wrote:
15.12.17 17:53, Guido van Rossum пише:
Make it so. "Dict keeps insertion order" is the ruling. Thanks! What should dict.popitem() return? The first item, the last item, or unspecified?
I'd say leave it as unspecified. Paul
- Previous message (by thread): [Python-Dev] Guarantee ordered dict literals in v3.7?
- Next message (by thread): [Python-Dev] Guarantee ordered dict literals in v3.7?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]