Message 321375 - Python tracker

Message321375

Author Stig Johan Berggren
Recipients Stig Johan Berggren, docs@python
Date 2018-07-10.10:17:05
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1531217825.24.0.56676864532.issue34083@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2018-07-10 10:17:05Stig Johan Berggrensetrecipients: + Stig Johan Berggren, docs@python
2018-07-10 10:17:05Stig Johan Berggrensetmessageid: <1531217825.24.0.56676864532.issue34083@psf.upfronthosting.co.za>
2018-07-10 10:17:05Stig Johan Berggrenlinkissue34083 messages
2018-07-10 10:17:05Stig Johan Berggrencreate