Last active
May 11, 2016 02:56
-
-
Save extremecoders-re/91774c406336e68141e44ee95a376d68 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
>>> import marshal, dis | |
>>> f = open('1.pyc', 'rb') | |
>>> f.seek(8) | |
>>> co = marshal.load(f) | |
>>> dis.disassemble(co) | |
1 >> 0 SETUP_EXCEPT 99 (to 102) | |
3 <144> 387 | |
6 STOP_CODE | |
7 JUMP_FORWARD 217 (to 227) | |
10 <157> 44944 | |
13 LOAD_NAME 28929 | |
Traceback (most recent call last): | |
File "<stdin>", line 1, in <module> | |
File "C:\Python27\lib\dis.py", line 97, in disassemble | |
print '(' + co.co_names[oparg] + ')', | |
IndexError: tuple index out of range |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment