First page Back Continue Last page Summary Graphics
PyChecker Using Byte Codes
>>> def func():
... print 'Format string %d %s %f' % (1, 'two')
...
>>> 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 BUILD_TUPLE 2
18 BINARY_MODULO
19 PRINT_ITEM
20 PRINT_NEWLINE
21 LOAD_CONST 0 (None)
24 RETURN_VALUE
>>>
Notes: