[zope2-tracker] [Bug 454448] [NEW] "ZPublisher.HTTPRequest.record.__cmp__" unreliable
dieter at handshake.de
Sun Oct 18 02:43:35 EDT 2009
Public bug reported:
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.__dict__.items(),
other.__dict__.items())" by "cmp(self.__dict__, other.__dict__)".
** Affects: zope2
** Tags: 2.12.0
You received this bug notification because you are a member of Zope 2
Developers, which is subscribed to Zope 2.
More information about the zope2-tracker