https://github.com/python/cpython/commit/56fa6f39ff5f751529ca42db79fe65e28af96112 commit: 56fa6f39ff5f751529ca42db79fe65e28af96112 branch: 3.12 author: Miss Islington (bot) <31488909+miss-isling...@users.noreply.github.com> committer: vstinner <vstin...@python.org> date: 2025-03-07T13:14:25Z summary:
[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 e5527f2cdda501542bf94179093e1a15d7889b74) Co-authored-by: Boris Verkhovskiy <boris.v...@gmail.com> files: M Doc/extending/embedding.rst diff --git a/Doc/extending/embedding.rst b/Doc/extending/embedding.rst index 4c7c7ec98a6c95..fca3ba9077767f 100644 --- a/Doc/extending/embedding.rst +++ b/Doc/extending/embedding.rst @@ -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 */ _______________________________________________ Python-checkins mailing list -- python-checkins@python.org To unsubscribe send an email to python-checkins-le...@python.org https://mail.python.org/mailman3/lists/python-checkins.python.org/ Member address: arch...@mail-archive.com