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

Denis Akhiyarov <[email protected]> Fri, 01 Dec 2017 14:28:56 +0000
Newsgroups gmane.comp.python.dotnet
Message-ID <CALxxJLQk38aFnjuMTjtgOD0SnrPX5qwYfDRkePLANtU3+NHLoQ@mail.gmail.com>
Can you filter user defined methods by excluding the dunder methods?

On Fri, Dec 1, 2017, 3:45 AM prathima shettigar <[email protected]>
wrote:

> 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 as string and throws
> errors for statements.
> 3)Also tried the way provided in the link
>
> https://mail.python.org/pipermail/pythondotnet/2006-May/000492.html
>
> 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.
>
> Regards,
> Prathima
> _________________________________________________
> Python.NET mailing list - [email protected]
> https://mail.python.org/mailman/listinfo/pythondotnet
>

_________________________________________________
Python.NET mailing list - [email protected]
https://mail.python.org/mailman/listinfo/pythondotnet