Skip to content

CLN: Use generators where list results are re-iterated over #58296

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 6 commits into from
Apr 19, 2024

Conversation

mroeschke
Copy link
Member

For methods that return a list that eventually get re-iterated over, refactored them to just yield values instead

@mroeschke mroeschke requested a review from rhshadrach as a code owner April 17, 2024 20:07
@mroeschke mroeschke added this to the 3.0 milestone Apr 17, 2024
Copy link
Member

@rhshadrach rhshadrach left a comment

Choose a reason for hiding this comment

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

lgtm

@rhshadrach rhshadrach merged commit 739928a into pandas-dev:main Apr 19, 2024
46 checks passed
@rhshadrach
Copy link
Member

Thanks @mroeschke

@mroeschke mroeschke deleted the ref/generators branch April 19, 2024 22:09
pmhatre1 pushed a commit to pmhatre1/pandas-pmhatre1 that referenced this pull request May 7, 2024
…ev#58296)

* Have methods returns generators instead of lists

* Fix ops method, undo block

* Undo internals test

* Make _is_memory_usage_qualified cache_readonly too
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants