"ZPublisher.HTTPRequest.record.__cmp__" unreliable
Bug #454448 reported by
Dieter Maurer
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Zope 2 |
Invalid
|
Low
|
Unassigned |
Bug Description
The method above essentially compares "__dict__.items()". However, the order in which items are generated is not determined by the set of "key --> value" pairs. Therefore, different record instances with the same set of "key --> value" pairs can compare unequal.
I suggest to replace "cmp(self.
Changed in zope2: | |
importance: | Undecided → Low |
status: | New → Confirmed |
To post a comment you must log in.
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.