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

Python library is missing operators and structs available in Rust #162

Closed
3 tasks done
ChristopherRabotin opened this issue Oct 18, 2022 · 0 comments · Fixed by #165
Closed
3 tasks done

Python library is missing operators and structs available in Rust #162

ChristopherRabotin opened this issue Oct 18, 2022 · 0 comments · Fixed by #165

Comments

@ChristopherRabotin
Copy link
Member

ChristopherRabotin commented Oct 18, 2022

These need to be added after the __sub__ function in epoch.rs:

  • __sub__ with an Epoch -- if it isn't possible to overload this function with pyo3, a specific function will need to be provided, e.g. timedelta to use as my_epoch.timedelta(another_epoch)
  • Functions for the >, < operators
  • __eq__ for Epoch and Duration

Duration also needs the operators >, <, ==. .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant