mirror of
https://github.com/godotengine/godot.git
synced 2025-11-02 06:31:13 +00:00
Mention ordering caveats for Dictionary.hash()
See https://github.com/godotengine/godot/issues/27615.
(cherry picked from commit 77b89263dd)
This commit is contained in:
parent
5495bbdd47
commit
8e8861ed06
1 changed files with 1 additions and 0 deletions
|
|
@ -146,6 +146,7 @@
|
||||||
# The line below prints `true`, whereas it would have printed `false` if both variables were compared directly.
|
# The line below prints `true`, whereas it would have printed `false` if both variables were compared directly.
|
||||||
print(dict1.hash() == dict2.hash())
|
print(dict1.hash() == dict2.hash())
|
||||||
[/codeblock]
|
[/codeblock]
|
||||||
|
[b]Note:[/b] Dictionaries with the same keys/values but in a different order will have a different hash.
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="keys">
|
<method name="keys">
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue