summaryrefslogtreecommitdiffstats
path: root/Doc/howto
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2022-03-31 14:24:39 (GMT)
committerGitHub <noreply@github.com>2022-03-31 14:24:39 (GMT)
commit98d57737de73342d33d1b90dc0285f586465d22b (patch)
tree574d4396bc49c55edefad7890ac5cd4b0d949d4f /Doc/howto
parentd04a21344ae69c66f5a6df69ee6fa6988a69b89d (diff)
downloadcpython-98d57737de73342d33d1b90dc0285f586465d22b.zip
cpython-98d57737de73342d33d1b90dc0285f586465d22b.tar.gz
cpython-98d57737de73342d33d1b90dc0285f586465d22b.tar.bz2
bpo-14911: Corrected generator.throw() documentation (GH-32207)
Co-authored-by: Andrew Svetlov <andrew.svetlov@gmail.com> (cherry picked from commit 8be7c2bc5ad5e295f0f855bb31db412eef2c7c92) Co-authored-by: Dave Goncalves <davegoncalves@gmail.com>
Diffstat (limited to 'Doc/howto')
-rw-r--r--Doc/howto/functional.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/howto/functional.rst b/Doc/howto/functional.rst
index c7f8bc8..695b9b3 100644
--- a/Doc/howto/functional.rst
+++ b/Doc/howto/functional.rst
@@ -589,7 +589,7 @@ generator function.
In addition to :meth:`~generator.send`, there are two other methods on
generators:
-* :meth:`throw(type, value=None, traceback=None) <generator.throw>` is used to
+* :meth:`throw(value) <generator.throw>` is used to
raise an exception inside the generator; the exception is raised by the
``yield`` expression where the generator's execution is paused.