Re: [IronPython] Moving/Copying a PythonFunction to a different scope

2009-02-02 Thread Michael Foord
Jeff Slutter wrote: My situation is that I have a .py file that defines a function. In this function it makes reference to some variables that aren't defined in its scope: (in a very simple way, it is like this -- a lot more is going on, but it isn't relevant) import MyModule def TestFunction(

[IronPython] Moving/Copying a PythonFunction to a different scope

2009-02-02 Thread Jeff Slutter
My situation is that I have a .py file that defines a function. In this function it makes reference to some variables that aren't defined in its scope: (in a very simple way, it is like this -- a lot more is going on, but it isn't relevant) import MyModule def TestFunction(x): return SomeClass