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
fix decorator detection bug #50
Conversation
using the real instruction before the |
@alexmojaki can I disable that the pipeline runs for every commit of a merge-request? I don't want to waste resources. |
b8dca84
to
f753e38
Compare
This should fix the bug. I also added analyse.py which is very useful for debugging executing. @alexmojaki please tell me if it can stay there or should I move it somewhere else? |
When would it run for a PR then?
Awesome, thanks! Do you understand the deal with CACHE? Do you think there should be a CPython issue?
It looks great, let's keep it. Do you think putting it under the tests folder would make sense? |
I created a draft-pull request and did not expected the pipeline to run. It is not a big problem I can also use [skip ci] in the commit message. CACHE is documented here. The documentation says only that it stores something and that it behaves like an NOP. I think it is an issue because it is documented that the interpreter should step over CACHE instructions. Do you want to report it or should I? |
f753e38
to
504054d
Compare
Please report it |
Is this PR still a draft? |
…tion also added analyse.py because it is really helpful for debugging.
504054d
to
e2eae3f
Compare
created this bug report and added it as a comment to the work around python/cpython#96970. no draft any more |
Thanks! |
try to fix #49
I also reported
frame.f_lasti
and the problem is that the instruction is aCACHE
instruction in thedeco
case (f_lasti == 130
).The Tester case gets the expected instruction and maps the bytecode correctly.
You can find my source here https://github.com/15r10nk/executing/tree/decorator-detection-bug
I could ignore CACHE instructions until now. I will try to figure out what they are good for.