[IronPython] Creating a CodeContext in 2.6RC
Michael Foord
fuzzyman at voidspace.org.uk
Sun Sep 27 23:54:18 CEST 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.
Michael
> - Jeff
> _______________________________________________
> Users mailing list
> Users at lists.ironpython.com
> http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
>
--
http://www.ironpythoninaction.com/
http://www.voidspace.org.uk/blog
More information about the Ironpython-users
mailing list