basic Class in Python
bartc
bartc at freeuk.com
Mon Jan 18 10:03:57 EST 2010
"Wolfgang Rohdewald" <wolfgang at rohdewald.de> wrote in message
news:mailman.1056.1263771299.28905.python-list at python.org...
> 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
Any particular reason why two, and not one (or three)? In some fonts it's
difficult to tell how many as they run together.
--
Bartc
More information about the Python-list
mailing list