Closed hzqmwne closed 3 years ago
Fixed now in decompyle3 in commit https://github.com/rocky/python-decompile3/commit/8c7e583c404836b4c5c37f19f9c290d968774206.
I leave as an exercise for reader adapting this fix for this repository. Note though that in this code base we don't generally use x if condition else y
since we do try to keep compatible with older Pythons.
The bug goes back all the way to Python 2.2 if not before (which is why I didn't ask about the version number earlier).
Fixed by #352
Description
missing parentheses of a lambda call
How to Reproduce
This is the source code:
then compile it with:
and decompile it
the output is:
the decompiled code is obviously error, that the parentheses are missing
Expected behavior
expected decompiled code is:
Environment
this bug can be repeated in such environments:
or
Additional Environment or Context
This bug also exists in decompyle3 3.3.2