Help with code

Fernando Pérez fperez528 at yahoo.com
Tue Feb 19 21:15:14 EST 2002


Dmitry Savchuk wrote:

> class now:
> def _init_(self):



it should be:
  def __init__(self):

Note the *two* underscores (__) on each side. Same goes for the __str__ 
method.

cheers,

f



More information about the Python-list mailing list