Re: MRO theory

2007-04-12 Thread Clarence
On Apr 11, 5:21 pm, "Carl Banks" <[EMAIL PROTECTED]> wrote: > > There is real Java code that is causing a class construction failure > > because of an inability to construct a consistent mro. I've tried > > several > > approaches to make it work, and by accident, sorting the list of > > interface

Re: MRO theory

2007-04-11 Thread Carl Banks
On Apr 11, 3:26 pm, "Clarence" <[EMAIL PROTECTED]> wrote: > No, there is no circularity. The problem is coming about in the JPype > application. It creates a Python class to proxy any Java class or Java > interface that the program uses (directly or indirectly). As far as > the > Java proxies go, w

Re: MRO theory

2007-04-11 Thread Clarence
On Apr 11, 12:09 pm, Steve Holden <[EMAIL PROTECTED]> wrote: > Without wishing to lay claim to genius, I'd suggest that you don;'t > write programs relying on multiple inheritance until you have a thorough > understanding of its principles. > > The inability of the interpreter to create a consisten

Re: MRO theory

2007-04-11 Thread Steve Holden
Clarence wrote: > I'm having problems creating classes because of "can't create a > consistent mro" problems. > > I noticed, in a test program, that if the base class list that I > pass to type.__new__ is sorted (using default keys, so presumably > sorting by the id's of the class objects), that t

MRO theory

2007-04-11 Thread Clarence
I'm having problems creating classes because of "can't create a consistent mro" problems. I noticed, in a test program, that if the base class list that I pass to type.__new__ is sorted (using default keys, so presumably sorting by the id's of the class objects), that the problem goes away. Now i