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
Equality of Path objects cannot be checked #2281
Labels
bug
Something isn't working
core
Relates to core functionality of RDFLib, i.e. `rdflib.{graph,store,term}`
regression
Something stopped working
Comments
aucampia
added
regression
Something stopped working
bug
Something isn't working
core
Relates to core functionality of RDFLib, i.e. `rdflib.{graph,store,term}`
labels
Mar 19, 2023
Thanks for reporting this @alhyss - I will have a look at this when I have time. |
I will try to release 6.3.2 with this fixed by 2023-03-27. |
aucampia
added a commit
to aucampia/rdflib
that referenced
this issue
Mar 19, 2023
These methods were removed when `@total_ordering` was added, but `@total_ordering` does not add them, so removing them essentially removes functionality. This change adds the methods back and adds tests to ensure they work correctly. I also moved all path related tests into one file. - Closes <RDFLib#2281>. - Closes <RDFLib#2242>.
aucampia
added a commit
to aucampia/rdflib
that referenced
this issue
Mar 19, 2023
These methods were removed when `@total_ordering` was added, but `@total_ordering` does not add them, so removing them essentially removes functionality. This change adds the methods back and adds tests to ensure they work correctly. All path related tests are also moved into one file. - Closes <RDFLib#2281>. - Closes <RDFLib#2242>.
4 tasks
aucampia
added a commit
to aucampia/rdflib
that referenced
this issue
Mar 19, 2023
These methods were removed when `@total_ordering` was added, but `@total_ordering` does not add them, so removing them essentially removes functionality. This change adds the methods back and adds tests to ensure they work correctly. All path related tests are also moved into one file. - Closes <RDFLib#2281>. - Closes <RDFLib#2242>.
Thanks! That would be really helpful. |
aucampia
added a commit
that referenced
this issue
Mar 21, 2023
These methods were removed when `@total_ordering` was added, but `@total_ordering` does not add them, so removing them essentially removes functionality. This change adds the methods back and adds tests to ensure they work correctly. All path related tests are also moved into one file. - Closes <#2281>. - Closes <#2242>.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
bug
Something isn't working
core
Relates to core functionality of RDFLib, i.e. `rdflib.{graph,store,term}`
regression
Something stopped working
Hi!
Since RDFLib 6.2.0, it's no longer possible to check the equality of two
Path
objects with==
.With RDFLib 6.1.1:
With RDFLib 6.2.0 and 6.3.0:
This is most likely due to PR #1528. The
__eq__()
method of thePath
class was removed, whilefunctools.total_ordering
apparently requires it:This also explains why membership tests currently don't work, as mentionned in the issue #2242.
Adding back the
__eq__()
method from RDFLib 6.1.1 should solve everything?The text was updated successfully, but these errors were encountered: