2005-01-11, 15:37
see out.append(cheadline(headline[0],headline[1],headline[2])).
that calls the cheadline class constructor with three args and appends it to the list.
so now we look at the cheadline class
class cheadline:
def (self, title, description, link):
self.title = title
self.description = description
self.link = link
there it is, it is the first arg.
that calls the cheadline class constructor with three args and appends it to the list.
so now we look at the cheadline class
class cheadline:
def (self, title, description, link):
self.title = title
self.description = description
self.link = link
there it is, it is the first arg.