basic Class in Python

John Bokma john at castleamber.com
Mon Jan 18 00:09:55 CET 2010


BarryJOgorman <barryjogorman at gmail.com> writes:

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

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

Note 2x _ before and after init.

-- 
John Bokma                                                               j3b

Hacking & Hiking in Mexico -  http://johnbokma.com/
http://castleamber.com/ - Perl & Python Development



More information about the Python-list mailing list