Skip to content

Commit

Permalink
Correct function name
Browse files Browse the repository at this point in the history
  • Loading branch information
verhovsky authored Dec 2, 2024
1 parent edefb86 commit 2a3f26b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Doc/extending/embedding.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit 2a3f26b

Please sign in to comment.