[New-bugs-announce] [issue34083] Functional Programming HOWTO: Dictionary ordering isn't "essentially random"

Stig Johan Berggren report at bugs.python.org
Tue Jul 10 06:17:05 EDT 2018


New submission from Stig Johan Berggren <stigjb at gmail.com>:

The section about iterators in the Functional Programming HOWTO (https://docs.python.org/3/howto/functional.html#data-types-that-support-iterators) states the following about looping over dictionary keys:

"Note that the order is essentially random, because it’s based on the hash ordering of the objects in the dictionary."

Starting with 3.7, dictionary order is guaranteed to be the same as insertion order.

----------
assignee: docs at python
components: Documentation
messages: 321375
nosy: Stig Johan Berggren, docs at python
priority: normal
severity: normal
status: open
title: Functional Programming HOWTO: Dictionary ordering isn't "essentially random"
versions: Python 3.7

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue34083>
_______________________________________


More information about the New-bugs-announce mailing list