# https://stackoverflow.com/q/56904257/1452488 import dis code = """ a = 1 b = 2 c = 3 d = 4 d, c, b, a = a, b, c, d """ print(dis.dis(code))
Standard input is empty
2 0 LOAD_CONST 0 (1)
3 STORE_NAME 0 (a)
3 6 LOAD_CONST 1 (2)
9 STORE_NAME 1 (b)
4 12 LOAD_CONST 2 (3)
15 STORE_NAME 2 (c)
5 18 LOAD_CONST 3 (4)
21 STORE_NAME 3 (d)
7 24 LOAD_NAME 0 (a)
27 LOAD_NAME 1 (b)
30 LOAD_NAME 2 (c)
33 LOAD_NAME 3 (d)
36 BUILD_TUPLE 4
39 UNPACK_SEQUENCE 4
42 STORE_NAME 3 (d)
45 STORE_NAME 2 (c)
48 STORE_NAME 1 (b)
51 STORE_NAME 0 (a)
54 LOAD_CONST 4 (None)
57 RETURN_VALUE
None