mirror of
https://github.com/rocky/python-uncompyle6.git
synced 2024-10-07 10:13:39 +00:00
Start supporting PyPy 3.2
Add some PyPy 2.7 and PyPy 3.2 bytecode files
This commit is contained in:
parent
9754d27597
commit
21683719e1
BIN
test/bytecode_pypy3.2/00_assign.pyc
Normal file
BIN
test/bytecode_pypy3.2/00_assign.pyc
Normal file
Binary file not shown.
BIN
test/bytecode_pypy3.2/00_import.pyc
Normal file
BIN
test/bytecode_pypy3.2/00_import.pyc
Normal file
Binary file not shown.
BIN
test/bytecode_pypy3.2/00_pass.pyc
Normal file
BIN
test/bytecode_pypy3.2/00_pass.pyc
Normal file
Binary file not shown.
BIN
test/bytecode_pypy3.2/01_boolean.pyc
Normal file
BIN
test/bytecode_pypy3.2/01_boolean.pyc
Normal file
Binary file not shown.
BIN
test/bytecode_pypy3.2/01_class.pyc
Normal file
BIN
test/bytecode_pypy3.2/01_class.pyc
Normal file
Binary file not shown.
BIN
test/bytecode_pypy3.2/01_fns.pyc
Normal file
BIN
test/bytecode_pypy3.2/01_fns.pyc
Normal file
Binary file not shown.
BIN
test/bytecode_pypy3.2/01_list_comprehension.pyc
Normal file
BIN
test/bytecode_pypy3.2/01_list_comprehension.pyc
Normal file
Binary file not shown.
BIN
test/bytecode_pypy3.2/01_positional.pyc
Normal file
BIN
test/bytecode_pypy3.2/01_positional.pyc
Normal file
Binary file not shown.
BIN
test/bytecode_pypy3.2/01_try_except.pyc
Normal file
BIN
test/bytecode_pypy3.2/01_try_except.pyc
Normal file
Binary file not shown.
BIN
test/bytecode_pypy3.2/02_closure.pyc
Normal file
BIN
test/bytecode_pypy3.2/02_closure.pyc
Normal file
Binary file not shown.
BIN
test/bytecode_pypy3.2/02_complex.pyc
Normal file
BIN
test/bytecode_pypy3.2/02_complex.pyc
Normal file
Binary file not shown.
BIN
test/bytecode_pypy3.2/02_def.pyc
Normal file
BIN
test/bytecode_pypy3.2/02_def.pyc
Normal file
Binary file not shown.
BIN
test/bytecode_pypy3.2/02_slice.pyc
Normal file
BIN
test/bytecode_pypy3.2/02_slice.pyc
Normal file
Binary file not shown.
BIN
test/bytecode_pypy3.2/05_3x_set_comphension.pyc
Normal file
BIN
test/bytecode_pypy3.2/05_3x_set_comphension.pyc
Normal file
Binary file not shown.
BIN
test/bytecode_pypy3.2/05_abc_class.pyc-notyet
Normal file
BIN
test/bytecode_pypy3.2/05_abc_class.pyc-notyet
Normal file
Binary file not shown.
BIN
test/bytecode_pypy3.2/05_class.pyc
Normal file
BIN
test/bytecode_pypy3.2/05_class.pyc
Normal file
Binary file not shown.
BIN
test/bytecode_pypy3.2/05_closure_bug.pyc
Normal file
BIN
test/bytecode_pypy3.2/05_closure_bug.pyc
Normal file
Binary file not shown.
BIN
test/bytecode_pypy3.2/05_const_map.pyc-notyet
Normal file
BIN
test/bytecode_pypy3.2/05_const_map.pyc-notyet
Normal file
Binary file not shown.
BIN
test/bytecode_pypy3.2/05_dup_top_two.pyc
Normal file
BIN
test/bytecode_pypy3.2/05_dup_top_two.pyc
Normal file
Binary file not shown.
BIN
test/bytecode_pypy3.2/05_for_for.pyc
Normal file
BIN
test/bytecode_pypy3.2/05_for_for.pyc
Normal file
Binary file not shown.
BIN
test/bytecode_pypy3.2/05_for_try_except.pyc
Normal file
BIN
test/bytecode_pypy3.2/05_for_try_except.pyc
Normal file
Binary file not shown.
BIN
test/bytecode_pypy3.2/05_if.pyc
Normal file
BIN
test/bytecode_pypy3.2/05_if.pyc
Normal file
Binary file not shown.
BIN
test/bytecode_pypy3.2/05_if_assign.pyc
Normal file
BIN
test/bytecode_pypy3.2/05_if_assign.pyc
Normal file
Binary file not shown.
BIN
test/bytecode_pypy3.2/05_ifelse.pyc
Normal file
BIN
test/bytecode_pypy3.2/05_ifelse.pyc
Normal file
Binary file not shown.
BIN
test/bytecode_pypy3.2/05_list_comprehension.pyc
Normal file
BIN
test/bytecode_pypy3.2/05_list_comprehension.pyc
Normal file
Binary file not shown.
BIN
test/bytecode_pypy3.2/05_long_list.pyc
Normal file
BIN
test/bytecode_pypy3.2/05_long_list.pyc
Normal file
Binary file not shown.
BIN
test/bytecode_pypy3.2/05_set_comprehension.pyc
Normal file
BIN
test/bytecode_pypy3.2/05_set_comprehension.pyc
Normal file
Binary file not shown.
BIN
test/bytecode_pypy3.2/05_static_method.pyc
Normal file
BIN
test/bytecode_pypy3.2/05_static_method.pyc
Normal file
Binary file not shown.
BIN
test/bytecode_pypy3.2/05_store_locals.pyc
Normal file
BIN
test/bytecode_pypy3.2/05_store_locals.pyc
Normal file
Binary file not shown.
BIN
test/bytecode_pypy3.2/05_try_except.pyc
Normal file
BIN
test/bytecode_pypy3.2/05_try_except.pyc
Normal file
Binary file not shown.
BIN
test/bytecode_pypy3.2/05_try_finally_pass.pyc
Normal file
BIN
test/bytecode_pypy3.2/05_try_finally_pass.pyc
Normal file
Binary file not shown.
BIN
test/bytecode_pypy3.2/05_with.pyc
Normal file
BIN
test/bytecode_pypy3.2/05_with.pyc
Normal file
Binary file not shown.
BIN
test/bytecode_pypy3.2/06_classbug.pyc
Normal file
BIN
test/bytecode_pypy3.2/06_classbug.pyc
Normal file
Binary file not shown.
BIN
test/bytecode_pypy3.2/06_for_break.pyc
Normal file
BIN
test/bytecode_pypy3.2/06_for_break.pyc
Normal file
Binary file not shown.
BIN
test/bytecode_pypy3.2/06_frozenset.pyc
Normal file
BIN
test/bytecode_pypy3.2/06_frozenset.pyc
Normal file
Binary file not shown.
BIN
test/bytecode_pypy3.2/06_ifTrue_optimize_bug.pyc
Normal file
BIN
test/bytecode_pypy3.2/06_ifTrue_optimize_bug.pyc
Normal file
Binary file not shown.
BIN
test/bytecode_pypy3.2/06_list_ifnot.pyc
Normal file
BIN
test/bytecode_pypy3.2/06_list_ifnot.pyc
Normal file
Binary file not shown.
BIN
test/bytecode_pypy3.2/06_list_ifnot_and.pyc-notyet
Normal file
BIN
test/bytecode_pypy3.2/06_list_ifnot_and.pyc-notyet
Normal file
Binary file not shown.
BIN
test/bytecode_pypy3.2/06_return_bug.pyc
Normal file
BIN
test/bytecode_pypy3.2/06_return_bug.pyc
Normal file
Binary file not shown.
BIN
test/bytecode_pypy3.2/06_setif_comprehension.pyc-notyet
Normal file
BIN
test/bytecode_pypy3.2/06_setif_comprehension.pyc-notyet
Normal file
Binary file not shown.
BIN
test/bytecode_pypy3.2/06_tryifelse.pyc-notyet
Normal file
BIN
test/bytecode_pypy3.2/06_tryifelse.pyc-notyet
Normal file
Binary file not shown.
@ -53,7 +53,7 @@ class Scanner(object):
|
||||
self.show_asm = show_asm
|
||||
|
||||
if version in PYTHON_VERSIONS:
|
||||
if is_pypy:
|
||||
if is_pypy and version != 3.2:
|
||||
v_str = "opcode_pypy%s" % (int(version * 10))
|
||||
else:
|
||||
v_str = "opcode_%s" % (int(version * 10))
|
||||
|
@ -46,8 +46,8 @@ import uncompyle6.scanner as scan
|
||||
|
||||
class Scanner3(scan.Scanner):
|
||||
|
||||
def __init__(self, version, show_asm=None):
|
||||
super(Scanner3, self).__init__(version, show_asm)
|
||||
def __init__(self, version, show_asm=None, is_pypy=False):
|
||||
super(Scanner3, self).__init__(version, show_asm, is_pypy)
|
||||
|
||||
# Create opcode classification sets
|
||||
# Note: super initilization above initializes self.opc
|
||||
|
@ -15,8 +15,8 @@ JUMP_OPs = map(lambda op: opc.opname[op], opc.hasjrel + opc.hasjabs)
|
||||
from uncompyle6.scanners.scanner3 import Scanner3
|
||||
class Scanner32(Scanner3):
|
||||
|
||||
def __init__(self, show_asm=None):
|
||||
Scanner3.__init__(self, 3.2, show_asm)
|
||||
def __init__(self, show_asm=None, is_pypy=False):
|
||||
Scanner3.__init__(self, 3.2, show_asm, is_pypy)
|
||||
return
|
||||
pass
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user