From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Fri, 7 Mar 2025 13:12:44 +0000 (+0100) Subject: [3.13] Correct function name in `Doc/extending/embedding.rst` (GH-127539) (#130945) X-Git-Tag: v3.13.3~158 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e0838a20227c0c1f83c7e061cbddb9c1cd17f991;p=thirdparty%2FPython%2Fcpython.git [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 e5527f2cdda501542bf94179093e1a15d7889b74) Co-authored-by: Boris Verkhovskiy --- diff --git a/Doc/extending/embedding.rst b/Doc/extending/embedding.rst index 20397dc5add5..b777862da79f 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 */