basic Class in Python

Wolfgang Rohdewald wolfgang at rohdewald.de
Mon Jan 18 00:22:42 CET 2010


On Monday 18 January 2010, BarryJOgorman wrote:
> TypeError: object._new_() takes no parameters

>     def _init_(self, name, job=None, pay=0):

__init__ needs two underscores left and right


-- 
Wolfgang



More information about the Python-list mailing list