zope.interface.Interface.implementedBy method can corrupt
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Zope 2 |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Incorrectly using zope.interface.
File "…/zope/
raise TypeError(
TypeError: (TypeError(
It does not seem to matter which attribute is accessed, or how (getattr causes the same error as o.attr).
It appears that the root cause of the problem is a side-effect of zope.interface.
https:/
At the very least, implementedBy should not have a side-effect. Ever.
This side-effect turns a simple mistake into a major problem:
http://
I note that others have had similar issues:
http://
The zope2 project on Launchpad has been archived at the request of the Zope developers (see https:/ /answers. launchpad. net/launchpad/ +question/ 683589 and https:/ /answers. launchpad. net/launchpad/ +question/ 685285). If this bug is still relevant, please refile it at https:/ /github. com/zopefoundat ion/zope2.