New submission from Stig Johan Berggren <sti...@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@python
components: Documentation
messages: 321375
nosy: Stig Johan Berggren, docs@python
priority: normal
severity: normal
status: open
title: Functional Programming HOWTO: Dictionary ordering isn't "essentially 
random"
versions: Python 3.7

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue34083>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to