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

PEP 479: 'return' instead of 'raise StopIteration'. #167

Merged
merged 1 commit into from Dec 27, 2019

Conversation

skozlov404
Copy link

@skozlov404 skozlov404 commented Dec 11, 2017

Raising StopIteration in generators is deprecated and will be converted to RuntimeError in Python3.7.
Instead of raising StopIteration the generator can be stopped by just a simple 'return' statement.

For details please visit https://www.python.org/dev/peps/pep-0479/

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.

None yet

2 participants