-
-
Notifications
You must be signed in to change notification settings - Fork 402
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error when decompiling loop inside if-else #322
Comments
This has been addressed by rocky/python-decompile3@a34740a however the change there needs to be applied here. I'm hoping someone else will put in a PR for that. Handling on 3.8 will need additional work. |
while True:
pass also this is not work. without inside function or if-else |
while True:
pass is a little bit silly,
but if one wanted to handle that, you could probably write a parse custom rule for this. It's not something though that I feel particularly motivated to work on. However should I need to do so in the future, maybe this will serve as a reminder for what approach to take. |
I was trying to decompile a pyc that I had, but it had a few errors. I managed to manually decompile it though and narrowed it down to code that looks like this:
When I compile this with
python3 -m compileall .
and then attempt to decompile, I get a 'parse error':Here is the disassembly of that code:
Hopefully this issue can be fixed!
The text was updated successfully, but these errors were encountered: