Re: [Python.NET] Calling Python functions/objects forom C# code

2013-07-05 Thread Patrick Stewart
Avi Mitrani writes: > I’m new to PythonDotNet, and to integrating Python & C#, and I have to say that I’m ‘breaking my teeth’ > Is there an example or tutorial you can direct me to? You need to do something like: var res = PyTuple.AsTuple(fibmodule.InvokeMethod("fib2", new PyObject[1] { new

[Python.NET] C# dynamic object support / Easy calling from C#

2013-07-05 Thread Patrick Stewart
Hi, Just thought I'd send a heads up to say I've made some modifications to python.net to make it much more convenient to call python code from C#, which can be found here: http://github.com/patstew/pythonnet I've inherited PyObject from DynamicObject, wired up the appropriate bits and added a few