mirror of
https://github.com/python/cpython.git
synced 2025-12-23 09:19:18 +00:00
[3.12] Correct function name in Doc/extending/embedding.rst (GH-127539) (#130946)
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:
parent
397e69d009
commit
56fa6f39ff
1 changed files with 2 additions and 2 deletions
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue