]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.13] gh-138902: Fix generator send arg name (GH-138905) (#138913)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 15 Sep 2025 11:35:22 +0000 (13:35 +0200)
committerGitHub <noreply@github.com>
Mon, 15 Sep 2025 11:35:22 +0000 (11:35 +0000)
gh-138902: Fix generator send arg name (GH-138905)
(cherry picked from commit cb07bd24eed43a0ac182e664398398164089f294)

Co-authored-by: Marat Khagazheev <marathagazeev@gmail.com>
Co-authored-by: marat <khagazheev@artlebedev.ru>
Objects/genobject.c

index c5156d84185ebda73c159b38434e7e9f7aa007f3..0273dea958efc11cd46f02583f5ad1a8fe23029a 100644 (file)
@@ -291,7 +291,7 @@ gen_send_ex(PyGenObject *gen, PyObject *arg, int exc, int closing)
 }
 
 PyDoc_STRVAR(send_doc,
-"send(arg) -> send 'arg' into generator,\n\
+"send(value) -> send 'value' into generator,\n\
 return next yielded value or raise StopIteration.");
 
 static PyObject *