mirror of
https://github.com/python/cpython.git
synced 2026-01-26 21:03:34 +00:00
Correct function name in Doc/extending/embedding.rst (#127539)
This commit is contained in:
parent
0a9ae5ed48
commit
e5527f2cdd
@ -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 */
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user