Debian Codegraph @

tests/data/cases/attribute_access_on_number_literals.py

raw
1 x = 123456789 .bit_count()
2 x = (123456).__abs__()
3 x = .1.is_integer()
4 x = 1. .imag
5 x = 1E+1.imag
6 x = 1E-1.real
7 x = 123456789.123456789.hex()
8 x = 123456789.123456789E123456789 .real
9 x = 123456789E123456789 .conjugate()
10 x = 123456789J.real
11 x = 123456789.123456789J.__add__(0b1011.bit_length())
12 x = 0XB1ACC.conjugate()
13 x = 0B1011 .conjugate()
14 x = 0O777 .real
15 x = 0.000000006 .hex()
16 x = -100.0000J
17
18 if 10 .real:
19 ...
20
21 y = 100[no]
22 y = 100(no)
23
24 # output
25
26 x = (123456789).bit_count()
27 x = (123456).__abs__()
28 x = (0.1).is_integer()
29 x = (1.0).imag
30 x = (1e1).imag
31 x = (1e-1).real
32 x = (123456789.123456789).hex()
33 x = (123456789.123456789e123456789).real
34 x = (123456789e123456789).conjugate()
35 x = 123456789j.real
36 x = 123456789.123456789j.__add__(0b1011.bit_length())
37 x = 0xB1ACC.conjugate()
38 x = 0b1011.conjugate()
39 x = 0o777.real
40 x = (0.000000006).hex()
41 x = -100.0000j
42
43 if (10).real:
44 ...
45
46 y = 100[no]
47 y = 100(no)