We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
catch StopIteration around 1-arg next in generator functions
example from https://www.python.org/dev/peps/pep-0479/#converting-the-exception-inside-next
input:
def my_generator(): ... yield next(it) ...
expected output:
def my_generator(): try: ... yield next(it) ... except StopIteration return
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Description
catch StopIteration around 1-arg next in generator functions
example from https://www.python.org/dev/peps/pep-0479/#converting-the-exception-inside-next
input:
expected output:
Details
The text was updated successfully, but these errors were encountered: