Skip to content

Path objects do not support membership testing #2242

@kouralex

Description

@kouralex

I recently found out that whilst URIRefs support expressions such as uriref in list/dict the same does not apply to Path objects, effectively making one unable to use Paths as dict keys, for instance. One could, of course, apply a .n3() string transformation whilst setting the key value in order to achieve such feature, but to me it would seem a more appropriate to be able to check for membership directly via Path objects.

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingcoreRelates to core functionality of RDFLib, i.e. `rdflib.{graph,store,term}`regressionSomething stopped working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions