[Python.NET] Issue in calling individual function dynamically in c# from python test cases

2017-11-27 Thread prathima shettigar
Hi, I am trying to get the individual function name which is in python script and call that in my c# code using python.NET but I am not able to achieve it. I would like to get some suggestions and guidance on the same. Regards, Prathima _ Python.NE

[Python.NET] Getting the name of the user-defined functions of python script through c#

2017-12-01 Thread prathima shettigar
Hi, I wanted to get all the functions name in my c# code from python script using Python.Net. I have tried the following method: 1)PyList.Dir():This return the built-in functions along with the user defined...but we want only the user defined. 2)PythonEngine.Eval():-It takes only the expressions

[Python.NET] Filtering of user defined methods

2017-12-03 Thread prathima shettigar
By excluding the Dunder methods I'll be able to filter out just the built-in function...but if my script contains import statements,Then how can I filter out such things.. Do we have anything similar to "inspect.isfunction(x)" in Python.NET just as in python? ___