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

Make partitions and (semi)standard_tableaux return iterators #3365

Merged
merged 1 commit into from
Feb 16, 2024

Conversation

joschmitt
Copy link
Member

@joschmitt joschmitt commented Feb 14, 2024

... the quick and dirty way to have a stable API.

There is no real change here, but it was agreed in #3159 that these functions should return iterators and not arrays. Back then I assumed, there would be some months before 1.0 to make this fundamental change. As this is apparently not the case, I just aim to get the API right for now.

Note: if we ever decide afterwards to return to arrays (and introduce e.g. iterate_partitions), we can still do that WITHOUT breaking API because arrays are iterable.
The other direction doesn't work because an iterator does e.g. not support getindex.

... the quick and dirty way to have a stable API
Copy link
Member

@lgoettgens lgoettgens left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lgtm

@lgoettgens lgoettgens added the backport 1.0.x Should be backported to the release 1.0 branch label Feb 16, 2024
@benlorenz benlorenz mentioned this pull request Feb 16, 2024
33 tasks
@joschmitt
Copy link
Member Author

Merge?

@thofma thofma merged commit 63f3f15 into oscar-system:master Feb 16, 2024
20 checks passed
@joschmitt joschmitt deleted the js/iterators branch February 16, 2024 18:43
benlorenz pushed a commit that referenced this pull request Feb 19, 2024
... the quick and dirty way to have a stable API
@benlorenz benlorenz removed the backport 1.0.x Should be backported to the release 1.0 branch label Feb 19, 2024
benlorenz added a commit that referenced this pull request Feb 23, 2024
### Backported PRs

- [x] #3367
- [x] #3379 
- [x] #3369
- [x] #3291
- [x] #3325
- [x] #3350 
- [x] #3351
- [x] #3365 
- [x] #3366
- [x] #3382
- [x] #3373
- [x] #3341
- [x] #3346
- [x] #3381
- [x] #3385
- [x] #3387 
- [x] #3398 
- [x] #3399 
- [x] #3374 
- [x] #3406 
- [x] #2823
- [x] #3298
- [x] #3386 
- [x] #3412 
- [x] #3392 
- [x] #3415 
- [x] #3394
- [x] #3391
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

Successfully merging this pull request may close these issues.

4 participants