[Tutor] _init_ from manuals

alan.gauld@bt.com alan.gauld@bt.com
Thu, 22 Aug 2002 13:47:23 +0100


> >>> class Complex:
> 	def _init_(self, realpart, imagpart):

Thats 2 underscores on each side:   

__init__()   not 
_init_()


Alan g.
Author of the 'Learning to Program' web site
http://www.freenetpages.co.uk/hp/alan.gauld