You've already forked python-uncompyle6
mirror of
https://github.com/rocky/python-uncompyle6.git
synced 2025-08-04 09:22:40 +08:00
More PyPy grammar rules
* assert one and two-arg form * trystmt Simplify adding multiple grammar rules
This commit is contained in:
17
test/simple_source/bug_pypy27/01_assert2.py
Normal file
17
test/simple_source/bug_pypy27/01_assert2.py
Normal file
@@ -0,0 +1,17 @@
|
||||
# From PyPy argparse, dedent.
|
||||
|
||||
# PyPY adds opcode JUMP_IF_NOT_DEBUG.
|
||||
# This is the two argument form.
|
||||
assert __name__ != '__main"', 'Indent decreased below 0.'
|
||||
|
||||
# From PyPy simple_interact.py
|
||||
# PyPy uses POP_JUMP_IF_FALSE as well as POP_JUMP_IF_TRUE
|
||||
# CPython only uses POP_JUMP_IF_TRUE
|
||||
while 1:
|
||||
try:
|
||||
more = 10
|
||||
except EOFError:
|
||||
break
|
||||
more = len(__file__)
|
||||
assert not more, "FOO"
|
||||
assert not more
|
Reference in New Issue
Block a user