Skip to content

gh-145300: Add __length_hint__ for itertools.islice#145333

Draft
KowalskiThomas wants to merge 1 commit intopython:mainfrom
KowalskiThomas:kowalski/gh-145300-add-__length_hint__-for-itertools-islice
Draft

gh-145300: Add __length_hint__ for itertools.islice#145333
KowalskiThomas wants to merge 1 commit intopython:mainfrom
KowalskiThomas:kowalski/gh-145300-add-__length_hint__-for-itertools-islice

Conversation

@KowalskiThomas
Copy link

@KowalskiThomas KowalskiThomas commented Feb 27, 2026

Summary

This PR addresses an issue I spotted on #145300, which mentioned that itertools.islice does not support __length_hint__ currently.

Note this is my first PR here; I read the contributor guidelines but I apologise in advance if anything I did not follow them (please do tell me!)

@python-cla-bot
Copy link

The following commit authors need to sign the Contributor License Agreement:

CLA not signed

@bedevere-app
Copy link

bedevere-app bot commented Feb 27, 2026

Most changes to Python require a NEWS entry. Add one using the blurb_it web app or the blurb command-line tool.

If this change has little impact on Python users, wait for a maintainer to apply the skip news label instead.

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.

1 participant