On Dec 17, 2007 12:16 PM, earlylight publishing <
[EMAIL PROTECTED]> wrote:

>
> class Critter(object):
>     """A virtual pet"""
>     def ___init___(self, name):
>         print "A new critter has been born!"
>
>

You're using 3 underscores before and after 'init'.  The constructor for
Python classes is '__init__' not '___init___'


-- 
-
http://stderr.ws/
"Insert pseudo-insightful quote here." - Some Guy
_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to