[Python-Dev] Guarantee ordered dict literals in v3.7? (original) (raw)
Serhiy Storchaka storchaka at gmail.com
Sun Nov 5 14:35:38 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 ]
05.11.17 21:20, Stefan Krah пише:
On Sun, Nov 05, 2017 at 09:01:40PM +0200, Serhiy Storchaka wrote:
Do you suggest to make dictionary displays producing OrderedDict instead of dict? No, this is essentially a language spec doc issue that would guarantee the ordering properties of the current dict implementation.
Wouldn't be enough to guarantee just the ordering of dicts before first deletion? Or before first resizing (the maximal size of dictionary displays is known at compile time, so they can be presized)?
- 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 ]