Message81912
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. |
|
Date |
User |
Action |
Args |
2009-02-13 12:03:04 | Rogi | set | recipients:
+ Rogi, georg.brandl |
2009-02-13 12:03:03 | Rogi | set | messageid: <1234526583.65.0.906444250771.issue5245@psf.upfronthosting.co.za> |
2009-02-13 12:03:01 | Rogi | link | issue5245 messages |
2009-02-13 12:03:00 | Rogi | create | |
|