summaryrefslogtreecommitdiff
path: root/tests/basics/types2.py
blob: ba7be6b1541b4dfd0528e6210511bb96b9ff3422 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# Types are hashable
print(hash(type) != 0)
print(hash(int) != 0)
print(hash(list) != 0)
class Foo: pass
print(hash(Foo) != 0)

print(int == int)
print(int != list)

d = {}
d[int] = list
d[list] = int
print(len(d))