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

Remove unordered outputs in v4 #335

Closed
ajfriend opened this issue Jan 1, 2024 · 0 comments
Closed

Remove unordered outputs in v4 #335

ajfriend opened this issue Jan 1, 2024 · 0 comments

Comments

@ajfriend
Copy link
Contributor

ajfriend commented Jan 1, 2024

h3.api.basic_str (the default) and h3.api.basic_int have many functions which return "unordered" results in the form of a Python set. The original intention for this was to signal to the user that there was no guarantee of the ordering of the outputs.

However, set is a little less ergonomic than list: you can't do out[0] to get the first element. Also, there is no matching "unordered" output for h3.api.numpy_int or h3.api.memview_int.

Also, we may have future versions of the library output results in "canonical" order, which would require a list output. Since this would be a breaking change, we'll introduce it in v4.

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