Python

NAVIGATION
CATEGORIES
REFERRENCE
LINKS
  • Problem with a class

    0 answers - 492 bytes - related search similar search Add To My Delicious Add To My Stumble Upon Add To My Google Mark Add To My Facebook Add To My Digg Add To My Reddit

    Mon, 22 May 2006, Andrew Robert wrote:
    class TriggerMessage:
    def __init__(self,data):
    This suggests that it's to be invoked along the lines of:
    foo = TriggerMessage(data)
    def decode(self):
    And this as:
    bar = foo.decode()
    test = TriggerMessage.decode(data)
    I think you wanted something like:
    test1 = TriggerMessage(data)
    test2 = test1.decode()
    Tutor maillist - Tutor (AT) python (DOT) org

Re: Problem with a class


max 4000 letters.
Your nickname that display:
In order to stop the spam: 8 + 7 =
QUESTION ON "Python"

EMSDN.COM