__init__ explanation please

Erik Lind elind at spamcop.net
Sun Jan 13 01:35:57 CET 2008

I'm new to Python, and OOP. I've read most of Mark Lutz's book and more 
online and can write simple modules, but I still don't get when __init__ 
needs to be used as opposed to creating a class instance by assignment. For 
some strange reason the literature seems to take this for granted. I'd 
appreciate any pointers or links that can help clarify this.


More information about the Python-list mailing list