Skip to content

fix(value): make sequence IntoIter::len return the remaining count - #640

Merged
decahedron1 merged 1 commit into
pykeio:mainfrom
onuralpszr:fix-seq-iter-len
Sep 29, 2026
Merged

decahedron1 merged 1 commit into
pykeio:mainfrom
onuralpszr:fix-seq-iter-len

Conversation

@onuralpszr

Copy link
Copy Markdown
Contributor

The sequence IntoIter returned the total length from len() even after items were taken, which breaks the ExactSizeIterator contract, so it now returns what is left and reports a matching size_hint, with the existing sequence test checking it.

@decahedron1
decahedron1 merged commit 96880cd into pykeio:main Sep 29, 2026
16 checks passed
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.

2 participants