[Python-Dev] The current dict is not an "OrderedDict"
Steven D'Aprano
steve at pearwood.info
Tue Nov 7 23:47:36 EST 2017
On Tue, Nov 07, 2017 at 05:37:15PM +0200, Serhiy Storchaka wrote:
> 07.11.17 16:56, Steven D'Aprano пише:
> >To clarify: if we start with an empty dict, add keys A...D, delete B,
> >then add E...H, we could expect:
[...]
> Rather
>
> {A: 1, D: 4, C: 3} # move the last item in place of removed
> {A: 1, D: 4, C: 3, E: 5}
Thanks for the correction.
--
Steve
More information about the Python-Dev
mailing list