8000 [3.13] Correct function name in `Doc/extending/embedding.rst` (GH-127… · python/cpython@e0838a2 · GitHub
[go: up one dir, main page]

Skip to content

Commit e0838a2

Browse files
[3.13] Correct function name in Doc/extending/embedding.rst (GH-127539) (#130945)
Correct function name in `Doc/extending/embedding.rst` (GH-127539) (cherry picked from commit e5527f2) Co-authored-by: Boris Verkhovskiy <boris.verk@gmail.com>
1 parent d5eb490 commit e0838a2

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)
0