[IronPython] Creating a CodeContext in 2.6RC
fuzzyman at voidspace.org.uk
Sun Sep 27 14:54:18 PDT 2009
Jeff Hardy wrote:
> There's a couple of places in NWSGI where I need a CodeContext, so
> I've just been creating an empty one like so and using it (and it's
> worked so far):
> new CodeContext(new Scope(), HostingHelpers.GetLanguageContext(engine))
> Now, in 2.6 RC I need a PythonDictionary instead of a scope (easy
> enough), but I need a ModuleContext instead of a Language context (for
> argument 2) - how do I get one of those?
> Also, this all feels horribly wrong - is there a better way that I'm missing?
I've had to use these several times and they are also used in Ironclad.
Documentation, *especially* of the changes, would be very useful.
> - Jeff
> Users mailing list
> Users at lists.ironpython.com
More information about the Users