Andrew Robert wrote:
Hey Bruno,
Although I have not tested it, this appears to be it exactly.
Some confusion though.
snip
/snip
import struct
class TriggerMessage(object):
def __init__(self,data):
Unpacks the passed binary data based on the
MQTCM2
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 that self would have carried forward when
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 =
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 the class.
var
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 is not known here; only
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.
test=TriggerMessage(data)
self is
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 that self