3.0 .. 3.4 bug in whileTrue

This commit is contained in:
rocky
2016-09-09 22:27:13 -04:00
parent 251de4338a
commit 71591152ef
6 changed files with 12 additions and 0 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@@ -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__':
b = 4

View File

@@ -286,6 +286,7 @@ class Python3Parser(PythonParser):
# Python < 3.5 no POP BLOCK
whileTruestmt ::= SETUP_LOOP l_stmts_opt JUMP_BACK _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
"""