"zope.interface.providedBy" does not respect "super"
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Zope 3 |
Won't Fix
|
Undecided
|
Unassigned | ||
zope.interface |
Won't Fix
|
Wishlist
|
Unassigned |
Bug Description
In some places, the implementation of a subclass adapter may take advantage of that defined for a base class. In such cases, "super" comes to mind. Unfortunately, "providedBy" (implicitely during in adapter lookup) does not respect "super" as shown by the folloging transscript:
>>> from zope.interface import Interface, implements
>>> class I1(Interface): pass
...
>>> class B(object): implements(
...
>>> class C(B): implements(I1)
...
>>> c=C()
>>> from zope.interface import providedBy
>>> list(providedBy(c))
[<InterfaceClass __main__.I1>, <InterfaceClass zope.interface.
>>> list(providedBy
[<InterfaceClass __main__.I1>, <InterfaceClass zope.interface.
Changed in zope3: | |
status: | New → Won't Fix |
Changed in zope.interface: | |
importance: | Undecided → Wishlist |
status: | New → Triaged |
Please follow up on Github:
https:/ /github. com/zopefoundat ion/zope. interface/ issues/ 11