[Python.NET] 2 ? about embedding python
Guy Robinson
guy at r-e-d.co.nz
Sat Jul 16 06:56:30 CEST 2005
Hello,
Both questions relate to python embedded in a C# application.
1.. If my python script returns a False/True then to pass the bool to the c#
script then this:
bool result = (bool)runFrm.AsManagedObject(typeof(Boolean));
should work shouldn't it?
2.. If the python script needed to return 3 values(2 strings + 1 boolean), then
how do I pass these to the C# application. I can't return an array because the
values aren't all the same type. And I can see no equivalent of a python tuple.
TIA,
Guy
More information about the PythonDotNet
mailing list