소스 검색

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

Mention ordering caveats for `Dictionary.hash()`
Rémi Verschelde 5 년 전
부모
커밋
60db9f906c
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      doc/classes/Dictionary.xml

+ 1 - 0
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">