In article <[EMAIL PROTECTED]>,
 Ed Leafe <[EMAIL PROTECTED]> wrote:

> On Jan 16, 2005, at 9:08 AM, bwobbones wrote:
> 
> > class two(one):
> >    def __init__(self):
> >        print "two"
> 
>       You need to specifically call the superclass's __init__ here in order 
> for it to fire. Just add the line
> 
>         super(two, self).__init__()
> 
> as the first line of the subclass's __init__.

super() only works for new-style classes, ie. class one needs to derive 
from object for this to work.

Just
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to