summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2020-06-10 10:36:43 +0200
committerGitHub <noreply@github.com>2020-06-10 10:36:43 +0200
commit60db9f906c8572f46bede89b5ed68965d660713a (patch)
treead8fa805eedfcc8a4bea1918fb5b61147e7ceafe
parentae21b5ddad844b92d055dd77dca5ce84d56b9719 (diff)
parent77b89263dd37299c3034327a99374d114b42706d (diff)
Merge pull request #39429 from Calinou/doc-dictionary-hash-order
Mention ordering caveats for `Dictionary.hash()`
-rw-r--r--doc/classes/Dictionary.xml1
1 files changed, 1 insertions, 0 deletions
diff --git a/doc/classes/Dictionary.xml b/doc/classes/Dictionary.xml
index 385f4b7e59..4538e5ea4e 100644
--- a/doc/classes/Dictionary.xml
+++ b/doc/classes/Dictionary.xml
@@ -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">