]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Correct function name in `Doc/extending/embedding.rst` (#127539)
authorBoris Verkhovskiy <boris.verk@gmail.com>
Fri, 7 Mar 2025 13:06:36 +0000 (06:06 -0700)
committerGitHub <noreply@github.com>
Fri, 7 Mar 2025 13:06:36 +0000 (14:06 +0100)
Doc/extending/embedding.rst

index 20397dc5add5db68a4c337653e81289b1f00c216..b777862da79f148bb467487e37c6f440ec5bcefe 100644 (file)
@@ -196,8 +196,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 */