[IronPython] How can you create set/frozenset from C# ?

Dan Eloff dan.eloff at gmail.com
Fri Oct 31 20:29:39 CET 2008


On Thu, Oct 30, 2008 at 5:55 PM, Michael Foord
<fuzzyman at voidspace.org.uk> wrote:
> SetCollection has a public constructor.
>
> If you need the CodeContext for __new__ then you can get one like this:
>
> LanguageContext language = HostingHelpers.GetLanguageContext(engine);
> CodeContext co = new CodeContext(new Scope(), language)
>


Thanks, that's exactly what I was looking for.

Cheers,
-Dan



More information about the Ironpython-users mailing list