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

Improve ics.Event.cmp_tuple() #343

Open
strobeflash opened this issue Jun 17, 2022 · 1 comment
Open

Improve ics.Event.cmp_tuple() #343

strobeflash opened this issue Jun 17, 2022 · 1 comment

Comments

@strobeflash
Copy link
Contributor

What does ics.Event.cmp_tuple() stand for?

It's used for implementing the comparison operators in an easy way, see also my essay (:see_no_evil:) on ordering. I didn't really intend to make this a public API, but I guess it's a nice way of displaying the main points of an Event. Only problem is that the timestamps are given in reversed order for ToDos to sort them correctly (see the essay), so we might want to turn that into a NamedTuple (and also give the method a better name?) if we want to turn that into an actual for-the-public API.

Originally posted by @N-Coder in #340 (comment)

@strobeflash
Copy link
Contributor Author

Low priority item decoupled from pull request.

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

No branches or pull requests

1 participant