Edward Catmur added the comment:

Łukasz, thanks. When the most-derived class virtual-inherits two related ABCs 
U, V:

       object
      /   |  \
      A   W   V
      | .`  .`
      B`  U`
      | .`
      C`

The secondary `for` loop is necessary to ensure U and V are ordered correctly.  
I'll upload a patch with an improved test that covers this case.

----------
Added file: 
http://bugs.python.org/file30646/singledispatch-mro-composition.patch

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue18244>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to