Start to DRY opcode code. Limited support for decopyling Python 3.5

This commit is contained in:
rocky
2016-01-02 22:59:02 -05:00
parent bc2a36b9f7
commit 31ebe88b38
15 changed files with 708 additions and 546 deletions

View File

@@ -1,4 +1,4 @@
# Copyright (c) 2015 by Rocky Bernstein
# Copyright (c) 2015-2016 by Rocky Bernstein
"""
Python 3.4 bytecode scanner/deparser
@@ -327,7 +327,7 @@ class Scanner34(scan3.Scanner3):
if __name__ == "__main__":
co = inspect.currentframe().f_code
tokens, customize = Scanner34().disassemble(co)
tokens, customize = Scanner34(3.4).disassemble(co)
for t in tokens:
print(t)
pass