Re: [Python.NET] Error in calling Python class method from C#

2018-05-02 Thread Stefan Schukat
developers of Python for .NET Subject: Re: [Python.NET] Error in calling Python class method from C# I have got success on doing. I just need to get review to ensure right. Please find below code snapshot. Class.py def test(): print "Test called" return 1 class ClassTest: def __i

Re: [Python.NET] Error in calling Python class method from C#

2018-04-30 Thread techi eth
I have got success on doing. I just need to get review to ensure right. Please find below code snapshot. Class.py def test(): print "Test called" return 1 class ClassTest: def __init__(self) def Initalize(self): print "Initalize called" return 1 @staticmethod def Execute():

Re: [Python.NET] Error in calling Python class method from C#

2018-04-29 Thread techi eth
Iron Python is having way to do the same.Please check below link. https://stackoverflow.com/questions/579272/instantiating-a-python-class-in-c-sharp On Mon, Apr 30, 2018 at 10:36 AM, techi eth wrote: > Thanks for link, I have been through most of pages but not able to found > same query. > I

Re: [Python.NET] Error in calling Python class method from C#

2018-04-29 Thread techi eth
Thanks for link, I have been through most of pages but not able to found same query. I am also not sure is this possible with Pyhton For .NET. Could you please give me below query answer. Can i create python class instance in C# programme On Mon, Apr 30, 2018 at 8:34 AM, Denis Akhiyarov wro

Re: [Python.NET] Error in calling Python class method from C#

2018-04-29 Thread Denis Akhiyarov
You may get more feedback on stackoverflow than on this mailing list for questions like this: https://stackoverflow.com/questions/tagged/python.net?sort=newest&pageSize=50 On Fri, Apr 27, 2018 at 3:54 AM, techi eth wrote: > Any input on raised query. I think i am missing something very simple b

Re: [Python.NET] Error in calling Python class method from C#

2018-04-27 Thread techi eth
Any input on raised query. I think i am missing something very simple but not able to catch. Thanks On Thu, Apr 26, 2018 at 5:47 PM, techi eth wrote: > Yes,It will work with this way but i need to create multiple instance of > same class.If you see other function (@Execute() ) with static was >

Re: [Python.NET] Error in calling Python class method from C#

2018-04-26 Thread techi eth
Yes,It will work with this way but i need to create multiple instance of same class.If you see other function (@Execute() ) with static was working. Please give me hint of doing without static. Thanks On Thu, Apr 26, 2018 at 4:54 PM, Stefan Schukat wrote: > Hello, > > > > you missed either @sta

Re: [Python.NET] Error in calling Python class method from C#

2018-04-26 Thread Stefan Schukat
Hello, you missed either @staticmethod decorator or the self argument for the Initialize method. Stefan From: PythonDotNet [mailto:[email protected]] On Behalf Of techi eth Sent: Wednesday, April 25, 2018 2:38 PM To: A list for users and developers of Pytho