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

Support iterators with incompletely defined __len__ functions #2445

Merged
merged 3 commits into from
Sep 8, 2023

Conversation

codedecde
Copy link
Contributor

If data_iter has an incomplete definition of len, this would throw an error with the check. But as long as the iter function works correctly, the semantics of the data_iterator are unaffected. Making the check more explicit for handling this.

@HeyangQin HeyangQin self-assigned this Aug 18, 2023
@loadams
Copy link
Contributor

loadams commented Sep 7, 2023

@codedecde - is this still a bug that you'd like to see fixed and is this PR complete from your side or do you need to push additional changes? Apologies for getting back around to this, but we can review if this is still a problem.

@loadams loadams changed the title support iterators with incompletely defined __len__ functions Support iterators with incompletely defined __len__ functions Sep 7, 2023
@tjruwase tjruwase added this pull request to the merge queue Sep 8, 2023
Merged via the queue into microsoft:master with commit e194956 Sep 8, 2023
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.

4 participants