Re: MRO Error on Multiple Inheritance?

2008-01-05 Thread Ming
Thanks for the all the replies. CPP2e is the Second Edition of the book "Core Python Programming." On Jan 4, 6:13 pm, Ben Finney <[EMAIL PROTECTED]> wrote: > Ming <[EMAIL PROTECTED]> writes: > > I'm working through Wesley Chun's CPP2e and got this error on 13.11.1, > > pp 548 where his interprete

Re: MRO Error on Multiple Inheritance?

2008-01-04 Thread Michele Simionato
On Jan 4, 9:03 pm, Ming <[EMAIL PROTECTED]> wrote: > I'm working through Wesley Chun's CPP2e and got this error on 13.11.1, > pp 548 where his interpreter snippet shows no problems: > > ActivePython 2.5.1.1 (ActiveState Software Inc.) b > Python 2.5.1 (r251:54863, May 1 2007, 17:47:05) [ > win32 >

Re: MRO Error on Multiple Inheritance?

2008-01-04 Thread Ben Finney
Ming <[EMAIL PROTECTED]> writes: > I'm working through Wesley Chun's CPP2e and got this error on 13.11.1, > pp 548 where his interpreter snippet shows no problems: I don't know what a "CPP2e" is. Is it a book? Can you give the ISBN? > ActivePython 2.5.1.1 (ActiveState Software Inc.) b > Python 2

Re: MRO Error on Multiple Inheritance?

2008-01-04 Thread Neil Cerutti
On Jan 4, 2008 3:03 PM, Ming <[EMAIL PROTECTED]> wrote: > I'm working through Wesley Chun's CPP2e and got this error on 13.11.1, > pp 548 where his interpreter snippet shows no problems: > > ActivePython 2.5.1.1 (ActiveState Software Inc.) b > Python 2.5.1 (r251:54863, May 1 2007, 17:47:05) [ > w

Re: MRO Error on Multiple Inheritance?

2008-01-04 Thread Fredrik Lundh
Ming wrote: > TypeError: Error when calling the metaclass bases > Cannot create a consistent method resolution > order (MRO) for bases A, B > > (I submitted the problem to the author but I'm not sure I'll ever hear > back.) I'm guessing that this kind of diamond inheritance is > prohibited

MRO Error on Multiple Inheritance?

2008-01-04 Thread Ming
I'm working through Wesley Chun's CPP2e and got this error on 13.11.1, pp 548 where his interpreter snippet shows no problems: ActivePython 2.5.1.1 (ActiveState Software Inc.) b Python 2.5.1 (r251:54863, May 1 2007, 17:47:05) [ win32 Type "help", "copyright", "credits" or "license" f >>> class A(