On Sun, Jan 8, 2012 at 12:16 PM, lars van gemerden <l...@rational-it.com> 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
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to