Skip to content

Commit 56fa6f3

Browse files
[3.12] Correct function name in Doc/extending/embedding.rst (GH-127539) (#130946)
Correct function name in `Doc/extending/embedding.rst` (GH-127539) (cherry picked from commit e5527f2) Co-authored-by: Boris Verkhovskiy <[email protected]>
1 parent 397e69d commit 56fa6f3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Doc/extending/embedding.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,8 +177,8 @@ interesting part with respect to embedding Python starts with ::
177177

178178
After initializing the interpreter, the script is loaded using
179179
:c:func:`PyImport_Import`. This routine needs a Python string as its argument,
180-
which is constructed using the :c:func:`PyUnicode_FromString` data conversion
181-
routine. ::
180+
which is constructed using the :c:func:`PyUnicode_DecodeFSDefault` data
181+
conversion routine. ::
182182

183183
pFunc = PyObject_GetAttrString(pModule, argv[2]);
184184
/* pFunc is a new reference */

0 commit comments

Comments
 (0)