]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.14] gh-138902: Fix generator send arg name (GH-138905) (#138914)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 7 Oct 2025 17:57:05 +0000 (19:57 +0200)
committerGitHub <noreply@github.com>
Tue, 7 Oct 2025 17:57:05 +0000 (23:27 +0530)
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 88814c3578af6ec5431ea4270e53bf68531060e0..f1fd995a246ed99eb5a2a704ddd71085ef27d043 100644 (file)
@@ -315,7 +315,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 *