[IronPython] 2.0B1 Hosting: Creating Python Types
Jeff Hardy
jdhardy at gmail.com
Mon Mar 17 17:16:55 PDT 2008
Hi,
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?
Thanks,
Jeff
More information about the Users
mailing list