<div dir="ltr"><div><div>What I am trying to accomplish is minimal use case, where function globals are replaced/faked.<br></div><div>The samples I am using can be examined at: <a href="https://gist.github.com/paweljasinski/1d3a18a885e3040449de">https://gist.github.com/paweljasinski/1d3a18a885e3040449de</a><br>
</div>I have replaced the context used by function, but the reference to global_variable out of fc0 is stuck.<br></div><div><br></div><div>I have made a snapshot of function code as LightLambdaExpression and reference to global variable is expressed as PythonGlobalVariableExpression (lightLambda, line 39)<br>
</div><div>This appears to contain the context which can not be changed.<br></div><div>Would it make sense to use LookupGlobalVariable instead?<br></div><div><br></div><div>--pawel<br></div><div> <br></div><br><div><br></div>
</div>