why am I not allowed to redefine a class ?

2008-11-09 Thread Stef Mientki
hello, although this is not a real problem for me, it was caused by a copying, instead of moving, a piece of code. But I don't understand at all why the code below gives the error. class derived_class, is defined twice, the error is cuase by the second instance creation test2= for me even

Re: why am I not allowed to redefine a class ?

2008-11-09 Thread Arnaud Delobelle
Stef Mientki [EMAIL PROTECTED] writes: hello, although this is not a real problem for me, it was caused by a copying, instead of moving, a piece of code. But I don't understand at all why the code below gives the error. class derived_class, is defined twice, the error is cuase by the

Re: why am I not allowed to redefine a class ?

2008-11-09 Thread Stef Mientki
thanks guys. cheers, Stef Terry Reedy wrote: Stef Mientki wrote: hello, although this is not a real problem for me, it was caused by a copying, instead of moving, a piece of code. But I don't understand at all why the code below gives the error. class derived_class, is defined twice, the

Re: why am I not allowed to redefine a class ?

2008-11-09 Thread Arnaud Delobelle
Terry Reedy [EMAIL PROTECTED] writes: [...] A different version of what Arnaud D. said: [...] That was much clearer! I realise now that my explanation was an order of magnitude too terse :) -- Arnaud -- http://mail.python.org/mailman/listinfo/python-list

Re: why am I not allowed to redefine a class ?

2008-11-09 Thread Terry Reedy
Stef Mientki wrote: hello, although this is not a real problem for me, it was caused by a copying, instead of moving, a piece of code. But I don't understand at all why the code below gives the error. class derived_class, is defined twice, the error is cuase by the second instance creation