-
Notifications
You must be signed in to change notification settings - Fork 555
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
Allow duplicates in rdf:List #690
Conversation
The closing the list issue is less important. It's now always closed. Leaving an open list is a very special case, people who want that can probably fix it themselves. |
Coveralls seems a bit confused. Removing code and adding a test should only increase test coverage! |
Actually - I find coveralls almost completely useless - we should just remove it :) |
Seems so. Anyhow, are you satisfied that this is the right thing to do? Should I merge it? |
The check was added to avoid an infinite loop in cases of degenerate lists I guess, but it's totally misguided, since it checks for duplicate values, not duplicate list elements. The correct (?) test is here: https://github.com/RDFLib/rdflib/blob/master/rdflib/graph.py#L801-L802 The whole |
Yes, you're correct of course. Would have been obvious if I had changed the test to do
now done. |
👍 Thanks! |
The check causing the problem in #223 is incorrect. This addresses the first half of the issue, allowing duplicates in lists. It does not address closing the list.