First page Back Continue Last page Summary Graphics
Byte Codes
>>> def func():
... print 'Format string %d %s %f' % (1, 'two', 3.3)
...
>>> import dis
>>> dis.dis(func)
0 SET_LINENO 1
3 SET_LINENO 2
6 LOAD_CONST 1 ('Format string %d %s %f')
9 LOAD_CONST 2 (1)
12 LOAD_CONST 3 ('two')
15 LOAD_CONST 4 (3.2999999999999998)
18 BUILD_TUPLE 3
21 BINARY_MODULO
22 PRINT_ITEM
23 PRINT_NEWLINE
24 LOAD_CONST 0 (None)
27 RETURN_VALUE
>>>
Notes: