On Thu, Jun 17, 2010 at 10:51 AM, Matteo Landi <landima...@gmail.com> wrote:
> I found few error in your code:
> 1 the constructor of P class seems to be wrong:
>
>>>> class P(object):
> ...    def __init__(self):
> ...        print("I am a member of class P")
> ...
>
> 2 super() works with new style classes, i.e.  the ones which inherit
> from 'object'
>

The OP is using Python 3.1. All classes in Python 3.x are new style.
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to