self.var hmm?

notnorwegian at yahoo.se notnorwegian at yahoo.se
Tue May 20 16:58:06 EDT 2008


class TaskGroup:
    def __init__(self):
        self.group = []

    def addTask(self, task):
        self.group.append(task)


is this wrong? i have a program thats too big to post but should i
just do group.append in addTask?

reason is when later doing TaskGroup.group i get None




More information about the Python-list mailing list