diff --git a/Doc/extending/embedding.rst b/Doc/extending/embedding.rst index 4c7c7ec98a6c95..fca3ba9077767f 100644 --- a/Doc/extending/embedding.rst +++ b/Doc/extending/embedding.rst @@ -177,8 +177,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 */