We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
If you lookup the same vertex (or edge) twice:
V_a = graph.vertices.index.lookup(somelabel=someid).next() V_b = graph.vertices.index.lookup(somelabel=someid).next()
Then they're considered equal:
V_a == V_b # true
But not identical:
V_a is V_b # false
A consequence of this behavior is that set([V_a, V_b]) will return a set with two equal elements although I would expect only one.
set([V_a, V_b])
This comes from bulbs.element.Element implementing __eq__ but not __hash__.
bulbs.element.Element
__eq__
__hash__
The text was updated successfully, but these errors were encountered:
No branches or pull requests
If you lookup the same vertex (or edge) twice:
Then they're considered equal:
But not identical:
A consequence of this behavior is that
set([V_a, V_b])
will return a set with two equal elements although I would expect only one.This comes from
bulbs.element.Element
implementing__eq__
but not__hash__
.The text was updated successfully, but these errors were encountered: