We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e00eeaf commit 4df85e4Copy full SHA for 4df85e4
1 file changed
tests/basics/builtin_hash.py
@@ -0,0 +1,10 @@
1
+# test builtin hash function
2
+
3
+class A:
4
+ def __hash__(self):
5
+ return 123
6
+ def __repr__(self):
7
+ return "a instance"
8
9
+print(hash(A()))
10
+print({A():1})
0 commit comments