Skip to content

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

Open
drewp wants to merge 2 commits intoRDFLib:masterfrom
drewp:concat-bug-fix
Open

HashablePatternList bug: when a rule has a Literal with whitespace in it, rdflib logs warnings#6
drewp wants to merge 2 commits intoRDFLib:masterfrom
drewp:concat-bug-fix

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