You've already forked python-uncompyle6
mirror of
https://github.com/rocky/python-uncompyle6.git
synced 2025-08-03 00:45:53 +08:00
More Python 3.0 for JUMP elimination ...
here, in except blocks.
This commit is contained in:
Binary file not shown.
@@ -7,3 +7,13 @@ def start_new_thread(function, args, kwargs={}):
|
||||
pass
|
||||
except:
|
||||
args()
|
||||
|
||||
# Adapted from 3.0.1 code.py
|
||||
# Bug is again JUMP_FORWARD elimination compared
|
||||
# to earlier and later Pythons.
|
||||
def interact():
|
||||
while 1:
|
||||
try:
|
||||
more = 1
|
||||
except KeyboardInterrupt:
|
||||
more = 0
|
||||
|
@@ -121,6 +121,9 @@ class Python30Parser(Python31Parser):
|
||||
|
||||
gen_comp_body ::= expr YIELD_VALUE COME_FROM POP_TOP
|
||||
|
||||
except_handler ::= jmp_abs COME_FROM_EXCEPT except_stmts
|
||||
COME_FROM POP_TOP END_FINALLY
|
||||
|
||||
################################################################################
|
||||
for_block ::= l_stmts_opt _come_froms POP_TOP JUMP_BACK
|
||||
|
||||
|
Reference in New Issue
Block a user