Skip to content
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

HashablePatternList bug: when a rule has a Literal with whitespace in it, rdflib logs warnings #6

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

drewp
Copy link

@drewp drewp commented Feb 17, 2014

See my post at https://groups.google.com/forum/#!topic/fuxi-discussion/43arTZCbSPo for more context and demo. This hash rewrite lets hash() do the mixing of the values instead of ever using +, which should perform faster and avoid the original bug. However, this will make some things that hashed the same before now have different hash values (and vice versa, in even rarer cases).

Using hash results to test equality is a bad practice in the first place, but I don't know the code well enough to fix that. It SEEMS like eq should be comparing the incoming 'items' values, after whatever canonicalization (sorting, ignore bnodes, etc) is supposed to happen.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant