mirror of
https://github.com/python/cpython.git
synced 2025-11-01 02:38:53 +00:00
Merge 3.2.1rc1 release changes to default.
This commit is contained in:
commit
fb2473fc8b
4 changed files with 121 additions and 11 deletions
|
|
@ -27,17 +27,15 @@ the same library that the Python runtime is using.
|
|||
|
||||
.. c:function:: int Py_Main(int argc, wchar_t **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 :c:func:`main` function (converted to wchar_t
|
||||
according to the user's locale). 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
|
||||
```0``` if the interpreter exits normally (ie, without an
|
||||
exception), ``1`` if the interpreter exits due to an exception, or
|
||||
``2`` if the parameter list does not represent a valid Python
|
||||
command line.
|
||||
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 :c:func:`main`
|
||||
function (converted to wchar_t according to the user's locale). 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 ``0`` if the interpreter exits normally (i.e., without an exception),
|
||||
``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 :exc:`SystemExit` is raised, this
|
||||
function will not return ``1``, but exit the process, as long as
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue