This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: PyRun_SimpleStringFlags() documentation
Type: Stage:
Components: Documentation Versions: Python 2.6
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: georg.brandl Nosy List: Rogi, georg.brandl
Priority: normal Keywords:

Created on 2009-02-13 12:03 by Rogi, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (2)
msg81912 - (view) Author: Rogi (Rogi) Date: 2009-02-13 12:02
From teh docs:
http://docs.python.org/c-api/veryhigh.html

int PyRun_SimpleStringFlags(const char *command, PyCompilerFlags *flags)¶
    Executes the Python source code from command in the __main__ module
according to the flags argument. If __main__ does not already exist, it
is created. Returns 0 on success or -1 if an exception was raised. If
there was an error, there is no way to get the exception information.
For the meaning of flags, see below.

In case of a SystemExit it will not return. This detail, along another
issue with Py_Main() and SystemExit, made me google around for a while.
msg84853 - (view) Author: Georg Brandl (georg.brandl) * (Python committer) Date: 2009-03-31 18:30
Documented in r70855.
History
Date User Action Args
2022-04-11 14:56:45adminsetgithub: 49495
2009-03-31 18:30:51georg.brandlsetstatus: open -> closed
resolution: fixed
messages: + msg84853
2009-02-13 12:03:02Rogicreate