]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.12] Correct function name in `Doc/extending/embedding.rst` (GH-127539) (#130946)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Fri, 7 Mar 2025 13:14:25 +0000 (14:14 +0100)
committerGitHub <noreply@github.com>
Fri, 7 Mar 2025 13:14:25 +0000 (13:14 +0000)
Correct function name in `Doc/extending/embedding.rst` (GH-127539)
(cherry picked from commit e5527f2cdda501542bf94179093e1a15d7889b74)

Co-authored-by: Boris Verkhovskiy <boris.verk@gmail.com>
Doc/extending/embedding.rst

index 4c7c7ec98a6c9594d2f5cdfe6fbf410bba75a8a1..fca3ba9077767f97a82a4660fab328b34c6d57b5 100644 (file)
@@ -177,8 +177,8 @@ interesting part with respect to embedding Python starts with ::
 
 After initializing the interpreter, the script is loaded using
 :c:func:`PyImport_Import`.  This routine needs a Python string as its argument,
-which is constructed using the :c:func:`PyUnicode_FromString` data conversion
-routine. ::
+which is constructed using the :c:func:`PyUnicode_DecodeFSDefault` data
+conversion routine. ::
 
    pFunc = PyObject_GetAttrString(pModule, argv[2]);
    /* pFunc is a new reference */