summaryrefslogtreecommitdiffstatshomepage
path: root/tests/float/types.py
blob: 75674c9246389cf6ed7ad295ae1be8df49ebbfe3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# float types

print(float)
print(complex)

print(type(float()) == float)
print(type(complex()) == complex)

print(type(0.0) == float)
print(type(1j) == complex)

# hashing float types

d = dict()
d[float] = complex
d[complex] = float
print(len(d))