Skip to content

Commit e5527f2

Browse files
authored
Correct function name in Doc/extending/embedding.rst (#127539)
1 parent 0a9ae5e commit e5527f2

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
@@ -196,8 +196,8 @@ interesting part with respect to embedding Python starts with ::
196196

197197
After initializing the interpreter, the script is loaded using
198198
:c:func:`PyImport_Import`. This routine needs a Python string as its argument,
199-
which is constructed using the :c:func:`PyUnicode_FromString` data conversion
200-
routine. ::
199+
which is constructed using the :c:func:`PyUnicode_DecodeFSDefault` data
200+
conversion routine. ::
201201

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

0 commit comments

Comments
 (0)