-
-
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
Args not appearing in decompiled src when kwargs is specified explicitly (call_ex_kw) #227
Comments
Thanks for the patch. It has been applied with some slight modification, so you might look at that to see the difference. In the future, I do prefer PR's. That way everyone will know you were the one who not only noticed but also fixed this. The main thing was to add a runnable test (when this is run under Python 3.6), that is not only decompiling the bytecode, but running the resulting Python to see that everything really works. One other comment about the specific code. Although this fix is technically correct and matches more closely what the bytecode is doing, it is not all that idiomatic. With a little bit of extra work
instead of
But that would mean writing a custom method for On the other hand, what you propose is correct and what was there was wrong, so correct beats wrong. Lastly, I'll admit that there are number of errors in uncompyle6 and it is not that hard to find them. As a hobby, I work my way across another instead of doing, say, a crossword puzzle. |
Thank your for this comprehensive comment. However I'm not sure about Thank you |
implements n_call_ex_kw as discussed in #227
First of all, i should thank you for such an incredible efforts and educational project.
Description
Suppose the following code:
using
uncompyle6
decompiles this to :According to
customize36.py
this can be fixed with following patch:How to Reproduce
Please use following commands:
Expected behavior
decompilation like:
Environment
b57ca392
3.6.7
Since i am new to this project if the above fix is accurate please let me know to propose a PR.
Thank you
The text was updated successfully, but these errors were encountered: