-
-
Notifications
You must be signed in to change notification settings - Fork 32.2k
bpo-33609: Add document for dict order #7093
New issue
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What about deletion? Does it scramble the order or does it preserve it? What are the guarantees?
"Preserves insertion order" is guaranteed for deletion too. |
Can you clarify that in the docs? ideally with a 3-4 lines example. |
"Scramble on deletion" was implementation detail of original Raymond's compact dict. Instead, I added one sentence about "insert after deletion" case. It had example already. |
@1st1 Are you OK with the revised wording? |
Yes, I think the updated text is great. Thanks, @methane! |
Thanks @methane for the PR, and @ned-deily for merging it 🌮🎉.. I'm working now to backport this PR to: 3.7. |
GH-7407 is a backport of this pull request to the 3.7 branch. |
…H-7093) (cherry picked from commit f822549) Co-authored-by: INADA Naoki <[email protected]>
(cherry picked from commit f822549) Co-authored-by: INADA Naoki <[email protected]>
https://bugs.python.org/issue33609