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

Standard dunder/magic methods for Ontology #228

Closed
CasperWA opened this issue Sep 24, 2021 · 0 comments · Fixed by #246
Closed

Standard dunder/magic methods for Ontology #228

CasperWA opened this issue Sep 24, 2021 · 0 comments · Fixed by #246
Assignees
Labels
bug Something isn't working enhancement New feature or request

Comments

@CasperWA
Copy link
Contributor

It might be nice to implement some standard dunder/magic methods for the Ontology class facilitating standard logical operations on Ontology objects. This is at least true for equality (==).

This issue comes from the fact that we (@francescalb and I) wanted to test whether two instantiations of the Ontology class from the same file were equal or not. (Here is a reference to the failed test.)

It might be good to implement other dunder/magic methods as well, maybe even for other classes as well?
For more information on the special methods, see the Python documentation or perhaps this guide written in 2012.

@CasperWA CasperWA added bug Something isn't working enhancement New feature or request labels Sep 24, 2021
@francescalb francescalb self-assigned this Sep 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants