René's URL Explorer Experiment


Title: PEP 479 – Change StopIteration handling inside generators | peps.python.org

Open Graph Title: PEP 479 – Change StopIteration handling inside generators | peps.python.org

Description: This PEP proposes a change to generators: when StopIteration is raised inside a generator, it is replaced with RuntimeError. (More precisely, this happens when the exception is about to bubble out of the generator’s stack frame.) Because the change is ...

Open Graph Description: This PEP proposes a change to generators: when StopIteration is raised inside a generator, it is replaced with RuntimeError. (More precisely, this happens when the exception is about to bubble out of the generator’s stack frame.) Because the change is ...

Opengraph URL: https://peps.python.org/pep-0479/

direct link

Domain: peps.python.org

color-schemelight dark
og:typewebsite
og:site_namePython Enhancement Proposals (PEPs)
og:imagehttps://peps.python.org/_static/og-image.png
og:image:altPython PEPs
og:image:width200
og:image:height200
theme-color#3776ab

Links:

Pythonhttps://www.python.org/
PEP Indexhttps://peps.python.org/
Abstracthttps://peps.python.org/479#abstract
Acceptancehttps://peps.python.org/479#acceptance
Rationalehttps://peps.python.org/479#rationale
Background informationhttps://peps.python.org/479#background-information
Proposalhttps://peps.python.org/479#proposal
Consequences for existing codehttps://peps.python.org/479#consequences-for-existing-code
Writing backwards and forwards compatible codehttps://peps.python.org/479#writing-backwards-and-forwards-compatible-code
Examples of breakagehttps://peps.python.org/479#examples-of-breakage
Explanation of generators, iterators, and StopIterationhttps://peps.python.org/479#explanation-of-generators-iterators-and-stopiteration
Transition planhttps://peps.python.org/479#transition-plan
Alternate proposalshttps://peps.python.org/479#alternate-proposals
Raising something other than RuntimeErrorhttps://peps.python.org/479#raising-something-other-than-runtimeerror
Supplying a specific exception to raise on returnhttps://peps.python.org/479#supplying-a-specific-exception-to-raise-on-return
Making return-triggered StopIterations obvioushttps://peps.python.org/479#making-return-triggered-stopiterations-obvious
Converting the exception inside next()https://peps.python.org/479#converting-the-exception-inside-next
Sub-proposal: decorator to explicitly request current behaviourhttps://peps.python.org/479#sub-proposal-decorator-to-explicitly-request-current-behaviour
Criticismhttps://peps.python.org/479#criticism
Why not fix all __next__() methods?https://peps.python.org/479#why-not-fix-all-next-methods
Referenceshttps://peps.python.org/479#references
Copyrighthttps://peps.python.org/479#copyright
Abstracthttps://peps.python.org/479#abstract
Acceptancehttps://peps.python.org/479#acceptance
Rationalehttps://peps.python.org/479#rationale
PEP 380https://peps.python.org/pep-0380/
[2]https://peps.python.org/479#id17
Background informationhttps://peps.python.org/479#background-information
Proposalhttps://peps.python.org/479#proposal
[3]https://peps.python.org/479#id18
[4]https://peps.python.org/479#id19
Consequences for existing codehttps://peps.python.org/479#consequences-for-existing-code
[5]https://peps.python.org/479#id20
[6]https://peps.python.org/479#id21
[7]https://peps.python.org/479#id22
Writing backwards and forwards compatible codehttps://peps.python.org/479#writing-backwards-and-forwards-compatible-code
Examples of breakagehttps://peps.python.org/479#examples-of-breakage
Explanation of generators, iterators, and StopIterationhttps://peps.python.org/479#explanation-of-generators-iterators-and-stopiteration
Transition planhttps://peps.python.org/479#transition-plan
Alternate proposalshttps://peps.python.org/479#alternate-proposals
Raising something other than RuntimeErrorhttps://peps.python.org/479#raising-something-other-than-runtimeerror
Supplying a specific exception to raise on returnhttps://peps.python.org/479#supplying-a-specific-exception-to-raise-on-return
Making return-triggered StopIterations obvioushttps://peps.python.org/479#making-return-triggered-stopiterations-obvious
[8]https://peps.python.org/479#id23
[9]https://peps.python.org/479#id24
Converting the exception inside next()https://peps.python.org/479#converting-the-exception-inside-next
[10]https://peps.python.org/479#id25
Sub-proposal: decorator to explicitly request current behaviourhttps://peps.python.org/479#sub-proposal-decorator-to-explicitly-request-current-behaviour
[11]https://peps.python.org/479#id26
[12]https://peps.python.org/479#id27
Criticismhttps://peps.python.org/479#criticism
[13]https://peps.python.org/479#id28
[3]https://peps.python.org/479#id18
[6]https://peps.python.org/479#id21
[7]https://peps.python.org/479#id22
[14]https://peps.python.org/479#id29
Why not fix all __next__() methods?https://peps.python.org/479#why-not-fix-all-next-methods
Referenceshttps://peps.python.org/479#references
2https://peps.python.org/479#id1
https://mail.python.org/pipermail/python-ideas/2014-November/029906.htmlhttps://mail.python.org/pipermail/python-ideas/2014-November/029906.html
1https://peps.python.org/479#id2
2https://peps.python.org/479#id13
https://mail.python.org/pipermail/python-ideas/2014-November/029953.htmlhttps://mail.python.org/pipermail/python-ideas/2014-November/029953.html
4https://peps.python.org/479#id3
http://bugs.python.org/issue22906http://bugs.python.org/issue22906
5https://peps.python.org/479#id4
https://docs.python.org/3/library/itertools.html#itertools.groupbyhttps://docs.python.org/3/library/itertools.html#itertools.groupby
1https://peps.python.org/479#id5
2https://peps.python.org/479#id14
http://code.activestate.com/recipes/578416-split-a-sequence-or-generator-using-a-predicate/http://code.activestate.com/recipes/578416-split-a-sequence-or-generator-using-a-predicate/
1https://peps.python.org/479#id6
2https://peps.python.org/479#id15
http://code.activestate.com/recipes/66427-wrap-unbounded-generator-to-restrict-its-output/http://code.activestate.com/recipes/66427-wrap-unbounded-generator-to-restrict-its-output/
8https://peps.python.org/479#id7
https://mail.python.org/pipermail/python-ideas/2014-November/029961.htmlhttps://mail.python.org/pipermail/python-ideas/2014-November/029961.html
9https://peps.python.org/479#id8
https://docs.python.org/3/library/asyncio-task.html#coroutineshttps://docs.python.org/3/library/asyncio-task.html#coroutines
10https://peps.python.org/479#id9
https://mail.python.org/pipermail/python-dev/2014-November/137129.htmlhttps://mail.python.org/pipermail/python-dev/2014-November/137129.html
11https://peps.python.org/479#id10
https://mail.python.org/pipermail/python-dev/2014-November/137201.htmlhttps://mail.python.org/pipermail/python-dev/2014-November/137201.html
12https://peps.python.org/479#id11
https://mail.python.org/pipermail/python-dev/2014-November/137243.htmlhttps://mail.python.org/pipermail/python-dev/2014-November/137243.html
13https://peps.python.org/479#id12
https://mail.python.org/pipermail/python-ideas/2014-November/029994.htmlhttps://mail.python.org/pipermail/python-ideas/2014-November/029994.html
14https://peps.python.org/479#id16
https://mail.python.org/pipermail/python-list/2014-November/680757.htmlhttps://mail.python.org/pipermail/python-list/2014-November/680757.html
Copyrighthttps://peps.python.org/479#copyright
Abstracthttps://peps.python.org/479#abstract
Acceptancehttps://peps.python.org/479#acceptance
Rationalehttps://peps.python.org/479#rationale
Background informationhttps://peps.python.org/479#background-information
Proposalhttps://peps.python.org/479#proposal
Consequences for existing codehttps://peps.python.org/479#consequences-for-existing-code
Writing backwards and forwards compatible codehttps://peps.python.org/479#writing-backwards-and-forwards-compatible-code
Examples of breakagehttps://peps.python.org/479#examples-of-breakage
Explanation of generators, iterators, and StopIterationhttps://peps.python.org/479#explanation-of-generators-iterators-and-stopiteration
Transition planhttps://peps.python.org/479#transition-plan
Alternate proposalshttps://peps.python.org/479#alternate-proposals
Raising something other than RuntimeErrorhttps://peps.python.org/479#raising-something-other-than-runtimeerror
Supplying a specific exception to raise on returnhttps://peps.python.org/479#supplying-a-specific-exception-to-raise-on-return
Making return-triggered StopIterations obvioushttps://peps.python.org/479#making-return-triggered-stopiterations-obvious
Converting the exception inside next()https://peps.python.org/479#converting-the-exception-inside-next
Sub-proposal: decorator to explicitly request current behaviourhttps://peps.python.org/479#sub-proposal-decorator-to-explicitly-request-current-behaviour
Criticismhttps://peps.python.org/479#criticism
Why not fix all __next__() methods?https://peps.python.org/479#why-not-fix-all-next-methods
Referenceshttps://peps.python.org/479#references
Copyrighthttps://peps.python.org/479#copyright
Page Source (GitHub)https://github.com/python/peps/blob/main/peps/pep-0479.rst?plain=1
https://github.com/python/peps/blob/main/peps/pep-0479.rsthttps://github.com/python/peps/blob/main/peps/pep-0479.rst
2025-02-01 08:59:27 UTChttps://github.com/python/peps/commits/main/peps/pep-0479.rst

Viewport: width=device-width, initial-scale=1.0


URLs of crawlers that visited me.