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

Use yield from instead of looping yield #6170

Merged
merged 1 commit into from Jun 29, 2022
Merged

Use yield from instead of looping yield #6170

merged 1 commit into from Jun 29, 2022

Commits on Jun 20, 2022

  1. Use yield from instead of looping yield

    This merge request updates the stream yield functionality to use `yield from` instead of `yield` within a for loop. Because this is yielding from an iterable, we can use `yield from` which is not only slightly shorter but also on average 15% more performant than using `yield` inside of a loop. This is a result of some of the optimizations included as part of [PEP 380](https://peps.python.org/pep-0380/)
    Kevin Kirsche committed Jun 20, 2022
    Copy the full SHA
    3dead9d View commit details
    Browse the repository at this point in the history