Message90596
| Author |
Rogi |
| Recipients |
Rogi, georg.brandl |
| Date |
2009年07月16日.23:30:21 |
| SpamBayes Score |
2.4589553e-11 |
| Marked as misclassified |
No |
| Message-id |
<1247787023.18.0.165575901629.issue6498@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
From teh docs:
http://docs.python.org/c-api/veryhigh.html
int Py_Main(int argc, char **argv)¶
The main program for the standard interpreter. This is made
available for programs which embed Python. The argc and argv parameters
should be prepared exactly as those which are passed to a C program’s
main() function. It is important to note that the argument list may be
modified (but the contents of the strings pointed to by the argument
list are not). The return value will be the integer passed to the
sys.exit() function, 1 if the interpreter exits due to an exception, or
2 if the parameter list does not represent a valid Python command line.
Note that if an otherwise unhandled SystemError is raised, this
function will not return 1, but exit the process, as long as
Py_InspectFlag is not set.
Py_Main() still does not return on SystemExit. |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2009年07月16日 23:30:23 | Rogi | set | recipients:
+ Rogi, georg.brandl |
| 2009年07月16日 23:30:23 | Rogi | set | messageid: <1247787023.18.0.165575901629.issue6498@psf.upfronthosting.co.za> |
| 2009年07月16日 23:30:21 | Rogi | link | issue6498 messages |
| 2009年07月16日 23:30:21 | Rogi | create |
|