multiple inheritance from list and other class

Chris Angelico rosuav at
Sat Jan 7 20:27:06 EST 2012

On Sun, Jan 8, 2012 at 12:16 PM, lars van gemerden <lars at> wrote:
> Hello,
> I have an error message i do not understand:
> My code is in essence:
> b = B([1,2,3,4])
> error:
>    b = B([0,1,2,3,4])
> TypeError: B() takes exactly 2 arguments (1 given)

Your code doesn't quite match your error message, and the code as
posted (with 'pass' in the method bodies to make it compile) works
fine. Can you derive a minimal test-case that actually produces the
error in question, and then post the actual code and error? Also -
what version of Python are you using?

Chris Angelico

More information about the Python-list mailing list