We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 941816a commit bad5fe5Copy full SHA for bad5fe5
Doc/howto/functional.rst
@@ -602,7 +602,7 @@ generators:
602
raise an exception inside the generator; the exception is raised by the
603
``yield`` expression where the generator's execution is paused.
604
605
-* :meth:`~generator.close` sends a :exc:`GeneratorExit` exception inside the
+* :meth:`~generator.close` sends a :exc:`GeneratorExit` exception to the
606
generator to terminate the iteration. On receiving this exception, the
607
generator's code must either raise :exc:`GeneratorExit` or
608
:exc:`StopIteration`; catching the exception and doing anything else is
0 commit comments