[IronPython] IronPython 2: Oddity with Hosting API from within IronPython
Tomas.Matousek at microsoft.com
Sat Nov 1 10:01:36 PDT 2008
I think nobody answered this question yet:
>>> As a minor supplementary question, how do I get a reference to the
>>> default ScriptScope on an engine? Is there any performance advantage in
>>> using the default one, can I replace it, and does replacing it remove
>>> any performance benefits we might have got? (OK, so strictly speaking
>>> that wasn't just one question...)
There is no default scope associated with an engine (other than Global scope on ScriptRuntime).
All methods that operate on a scope yet don't take one create a new empty scope each time called.
More information about the Users