[Ironpython-users] tinkering with cp35180 - types.FunctionType(...) raise NotImplementedError
pawel.jasinski at gmail.com
Thu May 8 18:18:49 CEST 2014
Forget about the LookupGlobalVariable. I think something around RewriteBody
with adjusted scope would be better. Comments?
On Thu, May 8, 2014 at 2:21 PM, Pawel Jasinski <pawel.jasinski at gmail.com>wrote:
> What I am trying to accomplish is minimal use case, where function globals
> are replaced/faked.
> The samples I am using can be examined at:
> I have replaced the context used by function, but the reference to
> global_variable out of fc0 is stuck.
> I have made a snapshot of function code as LightLambdaExpression and
> reference to global variable is expressed as PythonGlobalVariableExpression
> (lightLambda, line 39)
> This appears to contain the context which can not be changed.
> Would it make sense to use LookupGlobalVariable instead?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Ironpython-users