[Python.NET] Getting the name of the user-defined functions of python script through c#
denis.akhiyarov at gmail.com
Fri Dec 1 09:28:56 EST 2017
Can you filter user defined methods by excluding the dunder methods?
On Fri, Dec 1, 2017, 3:45 AM prathima shettigar <prathima548 at gmail.com>
> 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 as string and throws
> errors for statements.
> 3)Also tried the way provided in the link
> But facing problem in importing Cheetah template..
> Can you please confirm regarding the approaches taken?
> And also suggest me if any other approach available to achieve the same.
> Python.NET mailing list - PythonDotNet at python.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the PythonDotNet