Skip to content
This repository has been archived by the owner on Jul 7, 2021. It is now read-only.

while else bug #31

Open
rocky opened this issue Jan 12, 2018 · 0 comments
Open

while else bug #31

rocky opened this issue Jan 12, 2018 · 0 comments

Comments

@rocky
Copy link

rocky commented Jan 12, 2018

This program when compiled doesn't decompile

# From idlelib/PyParse.py
# Bug is "if" inside a nested while/else.
def _study1(i, n):
    while i:
        while i:
            i = 0
        else:
            if i:
                i = 1

It may be as simple as adding and 'l' in two grammar rules to fix this. See rocky/python-uncompyle6@c6e20e4

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant