[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 e5527f2cdd)

Co-authored-by: Boris Verkhovskiy <boris.verk@gmail.com>
This commit is contained in:
Miss Islington (bot) 2025-03-07 14:12:44 +01:00 committed by GitHub
parent d5eb490846
commit e0838a2022
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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 */