Andrew Robert wrote:
> Hey Bruno,
>
>
> Although I have not tested it, this appears to be it exactly.
>
>
> Some confusion though.
>
>
>
>
>>import struct
>>
>>class TriggerMessage(object):
>>def __init__(self,data):
>>"""
>>Unpacks the passed binary data based on the
>
Hey Bruno,
Although I have not tested it, this appears to be it exactly.
Some confusion though.
> import struct
>
> class TriggerMessage(object):
> def __init__(self,data):
> """
> Unpacks the passed binary data based on the
> MQTCM2 format dictated in
>
Andrew Robert a écrit :
> Hi Everyone,
>
> I am having a problem with a class and hope you can help.
>
> When I try to use the class listed below, I get the statement that self
> is not defined.
>
> test=TriggerMessage(data)
> var = test.decode(self.qname)
>
> I would have thought
wes weston schrieb:
> Andrew Robert wrote:
>
>> wes weston wrote:
>>
>>> Andrew Robert wrote:
>>>
Hi Everyone,
I am having a problem with a class and hope you can help.
When I try to use the class listed below, I get the statement that self
is not defined.
Andrew Robert wrote:
> wes weston wrote:
>> Andrew Robert wrote:
>>> Hi Everyone,
>>>
>>> I am having a problem with a class and hope you can help.
>>>
>>> When I try to use the class listed below, I get the statement that self
>>> is not defined.
>>>
>>> test=TriggerMessage(data)
>> self i
wes weston wrote:
> Andrew Robert wrote:
>> Hi Everyone,
>>
>> I am having a problem with a class and hope you can help.
>>
>> When I try to use the class listed below, I get the statement that self
>> is not defined.
>>
>> test=TriggerMessage(data)
>
> self is not known here; only inside
Andrew Robert wrote:
> Hi Everyone,
>
> I am having a problem with a class and hope you can help.
>
> When I try to use the class listed below, I get the statement that self
> is not defined.
>
> test=TriggerMessage(data)
self is not known here; only inside the class.
> var = tes