https://github.com/python/cpython/commit/ed28f2f42ace9fd98032b881bb3a663788d690e7
commit: ed28f2f42ace9fd98032b881bb3a663788d690e7
branch: 3.13
author: Miss Islington (bot) <31488909+miss-isling...@users.noreply.github.com>
committer: Yhg1s <tho...@python.org>
date: 2025-04-08T10:46:13+02:00
summary:

[3.13] gh-132174: Fix function name in error message of 
`_interpreters.run_string` (GH-132175) (#132209)

gh-132174: Fix function name in error message of `_interpreters.run_string` 
(GH-132175)
(cherry picked from commit f2daa96c81a45b26bdcf3d5c3887cec02137974e)

Co-authored-by: sobolevn <m...@sobolevn.me>
Co-authored-by: Brian Schubert <brianm.schub...@gmail.com>

files:
A Misc/NEWS.d/next/Library/2025-04-06-23-16-08.gh-issue-132174.dN4b-X.rst
M Modules/_interpretersmodule.c

diff --git 
a/Misc/NEWS.d/next/Library/2025-04-06-23-16-08.gh-issue-132174.dN4b-X.rst 
b/Misc/NEWS.d/next/Library/2025-04-06-23-16-08.gh-issue-132174.dN4b-X.rst
new file mode 100644
index 00000000000000..fa868c372198c7
--- /dev/null
+++ b/Misc/NEWS.d/next/Library/2025-04-06-23-16-08.gh-issue-132174.dN4b-X.rst
@@ -0,0 +1 @@
+Fix function name in error message of ``_interpreters.run_string``.
diff --git a/Modules/_interpretersmodule.c b/Modules/_interpretersmodule.c
index 8f912d803ba519..8f7106b6f1ac2a 100644
--- a/Modules/_interpretersmodule.c
+++ b/Modules/_interpretersmodule.c
@@ -1113,7 +1113,7 @@ interp_run_string(PyObject *self, PyObject *args, 
PyObject *kwds)
         return NULL;
     }
 
-    script = (PyObject *)convert_script_arg(script, MODULE_NAME_STR ".exec",
+    script = (PyObject *)convert_script_arg(script, MODULE_NAME_STR 
".run_string",
                                             "argument 2", "a string");
     if (script == NULL) {
         return NULL;

_______________________________________________
Python-checkins mailing list -- python-checkins@python.org
To unsubscribe send an email to python-checkins-le...@python.org
https://mail.python.org/mailman3/lists/python-checkins.python.org/
Member address: arch...@mail-archive.com

Reply via email to