Unverified Commit 60db9f90 by Rémi Verschelde Committed by GitHub

Merge pull request #39429 from Calinou/doc-dictionary-hash-order

Mention ordering caveats for `Dictionary.hash()`
parents ae21b5dd 77b89263
......@@ -148,6 +148,7 @@
# The line below prints `true`, whereas it would have printed `false` if both variables were compared directly.
print(dict1.hash() == dict2.hash())
[/codeblock]
[b]Note:[/b] Dictionaries with the same keys/values but in a different order will have a different hash.
</description>
</method>
<method name="keys">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment