[IronPython] 2.0B1 Hosting: Creating Python Types

Jeff Hardy jdhardy at gmail.com
Tue Mar 18 01:16:55 CET 2008

I'm trying to figure out how to create an instance of a Python type
(i.e. tuple and file) using the hosting interface (from C#). In older
versions there was PythonTuple.MakeTuple, for example, but that seems
to have disappeared. Now PythonTuple and PythonFile both require a
CodeContext, which I'm pretty sure is internal.

Is there a nice, easy way in 2.0B1 to create a tuple and convert a
Stream to a file-like object?


More information about the Ironpython-users mailing list