basic Class in Python

BarryJOgorman barryjogorman at gmail.com
Sun Jan 17 18:25:40 EST 2010


On Jan 17, 11:09 pm, John Bokma <j... at castleamber.com> wrote:
> BarryJOgorman <barryjogor... 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

Many thanks - onward and upward!



More information about the Python-list mailing list