[issue18244] singledispatch: When virtual-inheriting ABCs at distinct points in MRO, composed MRO is dependent on haystack ordering

Edward Catmur report at bugs.python.org
Wed Jun 19 10:12:08 CEST 2013


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 <report at bugs.python.org>
<http://bugs.python.org/issue18244>
_______________________________________


More information about the Python-bugs-list mailing list