__init__ & attributes clarification

Afanasiy abelikov72 at hotmail.com
Sun Feb 2 16:52:35 EST 2003


Are these two, in effect, the same?

class hive:
  workers = []

...

class hive:
  def __init__(self):
    self.workers = []




More information about the Python-list mailing list