diff options
Diffstat (limited to 'Doc/faq')
-rw-r--r-- | Doc/faq/extending.rst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/faq/extending.rst b/Doc/faq/extending.rst index 88996e4..fd04a83 100644 --- a/Doc/faq/extending.rst +++ b/Doc/faq/extending.rst @@ -62,7 +62,7 @@ How can I execute arbitrary Python statements from C? The highest-level function to do this is :c:func:`PyRun_SimpleString` which takes a single string argument to be executed in the context of the module -``__main__`` and returns 0 for success and -1 when an exception occurred +``__main__`` and returns ``0`` for success and ``-1`` when an exception occurred (including ``SyntaxError``). If you want more control, use :c:func:`PyRun_String`; see the source for :c:func:`PyRun_SimpleString` in ``Python/pythonrun.c``. |