From 2a3f26b3abfb70ca16a9d4586ff6114c364042c8 Mon Sep 17 00:00:00 2001 From: Boris Verkhovskiy Date: Mon, 2 Dec 2024 14:21:56 -0700 Subject: [PATCH] Correct function name --- Doc/extending/embedding.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Doc/extending/embedding.rst b/Doc/extending/embedding.rst index 20397dc5add5db..b777862da79f14 100644 --- a/Doc/extending/embedding.rst +++ b/Doc/extending/embedding.rst @@ -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 */