Skip to content

Support unsized iterables in isdistinct - #650

Open
yuefdev wants to merge 1 commit into
pytoolz:masterfrom
yuefdev:fix/isdistinct-unsized-iterables
Open

yuefdev wants to merge 1 commit into
pytoolz:masterfrom
yuefdev:fix/isdistinct-unsized-iterables

Conversation

@yuefdev

@yuefdev yuefdev commented Oct 18, 2026 •

Copy link
Copy Markdown

Fix isdistinct() raising TypeError for reusable iterables without a length.

Use the existing streaming path and keep the fast path for sized containers. Regression tests cover empty, unique and repeated values.

Validation: full suite and doctests passed; focused isdistinct tests rerun (2 passed).

Signed-off-by: Yusuf Efe <120668197+yuefdev@users.noreply.github.com>

This branch has not been deployed

No deployments
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