bpo-33609: Add document for dict order#7093
Conversation
1st1
left a comment
There was a problem hiding this comment.
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. |
https://bugs.python.org/issue33609