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
gt;>>> Please give me hint of doing without static.
>>>>>
>>>>> Thanks
>>>>>
>>>>> On Thu, Apr 26, 2018 at 4:54 PM, Stefan Schukat
>>>>> wrote:
>>>>>
>>>>>> Hello,
>>>>>>
>
2018 at 4:54 PM, Stefan Schukat
>>>> wrote:
>>>>
>>>>> Hello,
>>>>>
>>>>>
>>>>>
>>>>> you missed either @staticmethod decorator or the self argument for the
>>>>> Initialize method.
>>&g
>>>>
>>>>
>>>>
>>>> you missed either @staticmethod decorator or the self argument for the
>>>> Initialize method.
>>>>
>>>>
>>>>
>>>> Stefan
>>>>
>>>>
>>>&
gument for the
>>> Initialize method.
>>>
>>>
>>>
>>> Stefan
>>>
>>>
>>>
>>> *From:* PythonDotNet [mailto:pythondotnet-bounces+sschukat=
>>> dspace...@python.org] *On Behalf Of *techi eth
>>>
t;> Initialize method.
>>
>>
>>
>> Stefan
>>
>>
>>
>> *From:* PythonDotNet [mailto:pythondotnet-bounces+sschukat=
>> dspace...@python.org] *On Behalf Of *techi eth
>> *Se**nt:* Wednesday, April 25, 2018 2:38 PM
>> *To:* A list for users an
38 PM
> *To:* A list for users and developers of Python for .NET <
> pythondotnet@python.org>
> *Subject:* [Python.NET] Error in calling Python class method from C#
>
>
>
> Hi,
>
>
>
> I am facing issue while calling python class function in C# programme. Can
>
Python for .NET
Subject: [Python.NET] Error in calling Python class method from C#
Hi,
I am facing issue while calling python class function in C# programme. Can
anyone give me hint what is wrong in below programme.While running I am getting
error in invoking Initialize() function of class.
Python
Hi,
I am facing issue while calling python class function in C# programme. Can
anyone give me hint what is wrong in below programme.While running I am
getting error in invoking Initialize() function of class.
Python module :
def test():
print "Test called"
return 1
class ClassTest: