[Checkins] [zopefoundation/zope.interface] b5cb75: Use C3 (mostly) to compute IRO.

Jason Madden noreply at github.com
Thu Mar 5 21:41:55 CET 2020


  Branch: refs/heads/issue21
  Home:   https://github.com/zopefoundation/zope.interface
  Commit: b5cb75b7ea34be39c4c855cca9dc763463c3d22a
      https://github.com/zopefoundation/zope.interface/commit/b5cb75b7ea34be39c4c855cca9dc763463c3d22a
  Author: Jason Madden <jamadden at gmail.com>
  Date:   2020-03-05 (Thu, 05 Mar 2020)

  Changed paths:
    M CHANGES.rst
    M docs/api/declarations.rst
    M src/zope/interface/declarations.py
    M src/zope/interface/ro.py
    M src/zope/interface/tests/test_declarations.py
    M src/zope/interface/tests/test_ro.py

  Log Message:
  -----------
  Use C3 (mostly) to compute IRO.

Fixes #21

The 'mostly' is because interfaces are used in cases that C3 forbids; when there's a conflict, we move forward by adding the simple legacy base to the list at the conflicting location and continuing.

I hoped the fix for #8 might shake out automatically, but it didn't.




More information about the checkins mailing list