Closed nimamg closed 1 week ago
Nice catch! Thanks for reporting this. Coincidentally, I also had a similar issue with super
calls when using filters a few days ago.
I need to think about how to resolve this. I am also open to any suggestions.
Should be fixed by 0885eb1.
Description
When instrumenting binary operations that include a
super()
call in at least one of the operators, the instrumented code puts thesuper()
call into a lambda function, causing it to be invoked later on, and leading to a RuntimeError as thesuper()
function is called outside of its intended scope. This bypasses theonly_post
workaround that works in other cases.Original Code
Instrumented Code
I am just including the body of the
f
function from theB
class to be concise. This code was instrumented and ran using the includedTraceAll
analysisTraceback