Skip to content

Update islice to align behavior closer to CP #23

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

Merged
merged 3 commits into from
Feb 23, 2024

Conversation

kbsriram
Copy link
Contributor

  • added checks during iteration to handle "short" iterators
  • added tests to run some basic comparisons between CP and this library for islice.

Fixes #22

- added checks during iteration to handle "short" iterators
- added tests to run some basic comparisons between CP and
  this library for `islice`.

Fixes adafruit#22
Copy link
Contributor

@dhalbert dhalbert left a comment

Choose a reason for hiding this comment

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

Thanks.!One set of changes to slim down the ValueError messages.

@dhalbert dhalbert merged commit 397473c into adafruit:main Feb 23, 2024
@kbsriram kbsriram deleted the islice-fix branch February 23, 2024 20:36
adafruit-adabot added a commit to adafruit/Adafruit_CircuitPython_Bundle that referenced this pull request Feb 24, 2024
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.

islice has different behavior from the standard itertools version.
2 participants