basic Class in Python

Wolodja Wentland wentland at cl.uni-heidelberg.de
Mon Jan 18 00:23:17 CET 2010


On Sun, Jan 17, 2010 at 15:05 -0800, BarryJOgorman wrote:
 [...]
> class Person:
>     def _init_(self, name, job=None, pay=0):
          ^^^^^^ --> __init__(self, ...

It's __init__() not _init_()!

Have fun learning Python!

-- 
  .''`.     Wolodja Wentland    <wentland at cl.uni-heidelberg.de> 
 : :'  :    
 `. `'`     4096R/CAF14EFC 
   `-       081C B7CD FF04 2BA9 94EA  36B2 8B7F 7D30 CAF1 4EFC
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://mail.python.org/pipermail/python-list/attachments/20100118/e1472178/attachment.sig>


More information about the Python-list mailing list