You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Check key identity before ==. This matches the C implementation.
Fixes#50
Add a pickle test to the work done in #54. Fixes#51. Fixes#53 (for
Python 2).
Check key identity before ==. This matches the C implementation.
Fixes#50
Add a pickle test to the work done in #54. Fixes#51. Fixes#53 (for
Python 2).
The C implementation does a comparison by first checking whether the two keys are the same pointer; the Python implementation just goes right to the
==
operator. In some cases of (broken?) objects this leads to a discrepancy: The C implementation can find a key, but the Python implementation cannot.I would suggest that the Python implementation should use
k is key or k == key
to clear this up.See https://groups.google.com/forum/#!topic/zodb/xhVM0ejl6aE
The text was updated successfully, but these errors were encountered: