TypeError: Cannot create a consistent method resolution order (MRO)for bases object

digitalorganics at gmail.com digitalorganics at gmail.com
Mon Jun 26 21:54:56 CEST 2006


Oh, I forgot the line that bombed, sorry:

line 52, in __main__
    Bat.__bases__ += (Dog,)
TypeError: Cannot create a consistent method resolution
order (MRO) for bases object, Mixin, Dog

See my other post for the complete code and my relevant note about
new-style classes, thanks...

Terry Reedy wrote:
> <digitalorganics at gmail.com> wrote in message
> news:1151345197.691600.200060 at y41g2000cwy.googlegroups.com...
> > What are the reason one would get this error: TypeError: Cannot create
> > a consistent method resolution order (MRO) for bases object ??
>
> Because the interpreter cannot ;-)
>
> > I can provide the code if needed....
>
> Details beget details ;-)
> Yes, the class statement  (header line up to ':') that bombed and the same
> (first line) for classes it inherits from (and their base classes).  The
> conflict should be in the latter.
> 
> tjr




More information about the Python-list mailing list