You've already forked python-uncompyle6
mirror of
https://github.com/rocky/python-uncompyle6.git
synced 2025-08-03 00:45:53 +08:00
3.0 .. 3.4 bug in whileTrue
This commit is contained in:
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
test/bytecode_3.5/10_while.pyc-notyet
Normal file
BIN
test/bytecode_3.5/10_while.pyc-notyet
Normal file
Binary file not shown.
@@ -1,2 +1,13 @@
|
|||||||
|
# From 3.2 text_file.py
|
||||||
|
def readline(self, line):
|
||||||
|
while True:
|
||||||
|
if self.join_lines:
|
||||||
|
if line:
|
||||||
|
continue
|
||||||
|
if self:
|
||||||
|
continue
|
||||||
|
|
||||||
|
return line
|
||||||
|
|
||||||
while __name__ != '__main__':
|
while __name__ != '__main__':
|
||||||
b = 4
|
b = 4
|
||||||
|
@@ -286,6 +286,7 @@ class Python3Parser(PythonParser):
|
|||||||
# Python < 3.5 no POP BLOCK
|
# Python < 3.5 no POP BLOCK
|
||||||
whileTruestmt ::= SETUP_LOOP l_stmts_opt JUMP_BACK _come_from
|
whileTruestmt ::= SETUP_LOOP l_stmts_opt JUMP_BACK _come_from
|
||||||
whileTruestmt ::= SETUP_LOOP l_stmts_opt JUMP_BACK NOP _come_from
|
whileTruestmt ::= SETUP_LOOP l_stmts_opt JUMP_BACK NOP _come_from
|
||||||
|
whileTruestmt ::= SETUP_LOOP return_stmts _come_from
|
||||||
while1stmt ::= SETUP_LOOP l_stmts _come_from JUMP_BACK _come_from
|
while1stmt ::= SETUP_LOOP l_stmts _come_from JUMP_BACK _come_from
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user