We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
GitHub fields:
assignee = 'https://github.com/rhettinger' closed_at = <Date 2018-07-11.09:59:37.147> created_at = <Date 2018-07-10.10:17:05.224> labels = ['3.7', '3.8', 'docs'] title = 'Functional Programming HOWTO: Dictionary ordering isn\'t "essentially random"' updated_at = <Date 2018-07-11.11:21:54.613> user = 'https://github.com/Stigjb'
bugs.python.org fields:
activity = <Date 2018-07-11.11:21:54.613> actor = 'miss-islington' assignee = 'rhettinger' closed = True closed_date = <Date 2018-07-11.09:59:37.147> closer = 'methane' components = ['Documentation'] creation = <Date 2018-07-10.10:17:05.224> creator = 'Stig Johan Berggren' dependencies = [] files = [] hgrepos = [] issue_num = 34083 keywords = ['patch'] message_count = 6.0 messages = ['321375', '321386', '321389', '321427', '321428', '321445'] nosy_count = 5.0 nosy_names = ['rhettinger', 'methane', 'docs@python', 'miss-islington', 'Stig Johan Berggren'] pr_nums = ['8230', '8246'] priority = 'normal' resolution = 'fixed' stage = 'resolved' status = 'closed' superseder = None type = None url = 'https://bugs.python.org/issue34083' versions = ['Python 3.7', 'Python 3.8']
The text was updated successfully, but these errors were encountered:
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.
Sorry, something went wrong.
Thanks for noticing this. Do you want to contribute a patch or would you like me to just fix it up?
I'll try to patch it myself.
New changeset 5e5bbbe by INADA Naoki (Stig Johan Berggren) in branch 'master': bpo-34083: Update dict order in Functional HOWTO (GH-8230) 5e5bbbe
Thanks, Stig. And I'm sorry about I missed Raymond assigned himself.
New changeset 151820e by Miss Islington (bot) in branch '3.7': bpo-34083: Update dict order in Functional HOWTO (GH-8230) 151820e
rhettinger
No branches or pull requests
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: