basic Class in Python

John Bokma john at castleamber.com
Sun Jan 17 18:09:55 EST 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