-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
C BTrees allow some unorderable types #52
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Given this class:
Under Python 2.7, you can use instances of this class as a key in any size C BTree.
Under Python 3, you can insert this into an empty tree only. Once you do, the tree is broken. Jim Fulton suggested that the key should be compared to itself on an empty tree to catch this (but given that pointer equality is checked first, it's not clear exactly how that would be done).
The Python implementation rejects this object in all versions in all size trees.
See https://groups.google.com/forum/#!topic/zodb/xhVM0ejl6aE
The text was updated successfully, but these errors were encountered: