, . - , .
, . , , xdis, , -, pycdas, ++, pycdc. .
, , , . , , uncompyle6, . , github-.
Ok. , , . , Python, pyc. - ; http://github.com/rocky/python-xasm.
, .
, , , .
Python:
___file__ == '__main'
pydisasm:
...
1: 0 LOAD_NAME 0 (___file__)
3 LOAD_CONST 0 ('__main')
6 COMPARE_OP 2 (==)
9 POP_TOP
10 LOAD_CONST 1 (None)
13 RETURN_VALUE
Ok. , == a COMPARE_OP
, 2.
https://docs.python.org/3.6/library/dis.html#opcode-COMPARE_OP ( Python 3.6, Python) :
The operation name can be found in cmp_op[opname].
Python opcode.py, , , -, : https://github.com/python/cpython/blob/master/Lib/opcode.py#L24
cmp_op = ('<', '<=', '==', '!=', '>', '>=', 'in', 'not in', 'is', ...
, , == 2, != 3.
[116901, 141, 349244, 39, 1159488], Constants, , .