mirror of
https://github.com/python/cpython.git
synced 2025-09-27 18:59:43 +00:00
Branch merge.
This commit is contained in:
commit
2bff9fcec2
4 changed files with 13 additions and 9 deletions
|
@ -34,11 +34,12 @@ the same library that the Python runtime is using.
|
||||||
according to the user's locale). It is important to note that the
|
according to the user's locale). It is important to note that the
|
||||||
argument list may be modified (but the contents of the strings
|
argument list may be modified (but the contents of the strings
|
||||||
pointed to by the argument list are not). The return value will be
|
pointed to by the argument list are not). The return value will be
|
||||||
the integer passed to the :func:`sys.exit` function, ``1`` if the
|
```0``` if the interpreter exits normally (ie, without an
|
||||||
interpreter exits due to an exception, or ``2`` if the parameter
|
exception), ``1`` if the interpreter exits due to an exception, or
|
||||||
list does not represent a valid Python command line.
|
``2`` if the parameter list does not represent a valid Python
|
||||||
|
command line.
|
||||||
|
|
||||||
Note that if an otherwise unhandled :exc:`SystemError` is raised, this
|
Note that if an otherwise unhandled :exc:`SystemExit` is raised, this
|
||||||
function will not return ``1``, but exit the process, as long as
|
function will not return ``1``, but exit the process, as long as
|
||||||
``Py_InspectFlag`` is not set.
|
``Py_InspectFlag`` is not set.
|
||||||
|
|
||||||
|
@ -85,7 +86,7 @@ the same library that the Python runtime is using.
|
||||||
there was an error, there is no way to get the exception information. For the
|
there was an error, there is no way to get the exception information. For the
|
||||||
meaning of *flags*, see below.
|
meaning of *flags*, see below.
|
||||||
|
|
||||||
Note that if an otherwise unhandled :exc:`SystemError` is raised, this
|
Note that if an otherwise unhandled :exc:`SystemExit` is raised, this
|
||||||
function will not return ``-1``, but exit the process, as long as
|
function will not return ``-1``, but exit the process, as long as
|
||||||
``Py_InspectFlag`` is not set.
|
``Py_InspectFlag`` is not set.
|
||||||
|
|
||||||
|
|
|
@ -10,6 +10,9 @@ What's New in Python 3.2.1 release candidate 1?
|
||||||
Core and Builtins
|
Core and Builtins
|
||||||
-----------------
|
-----------------
|
||||||
|
|
||||||
|
- Issue #12060: Use sig_atomic_t type and volatile keyword in the signal
|
||||||
|
module. Patch written by Charles-François Natali.
|
||||||
|
|
||||||
- Issue #12044: Fixed subprocess.Popen when used as a context manager to
|
- Issue #12044: Fixed subprocess.Popen when used as a context manager to
|
||||||
wait for the process to end when exiting the context to avoid unintentionally
|
wait for the process to end when exiting the context to avoid unintentionally
|
||||||
leaving zombie processes around.
|
leaving zombie processes around.
|
||||||
|
|
|
@ -80,12 +80,12 @@ static long main_thread;
|
||||||
static pid_t main_pid;
|
static pid_t main_pid;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
static struct {
|
static volatile struct {
|
||||||
int tripped;
|
sig_atomic_t tripped;
|
||||||
PyObject *func;
|
PyObject *func;
|
||||||
} Handlers[NSIG];
|
} Handlers[NSIG];
|
||||||
|
|
||||||
static sig_atomic_t wakeup_fd = -1;
|
static volatile sig_atomic_t wakeup_fd = -1;
|
||||||
|
|
||||||
/* Speed up sigcheck() when none tripped */
|
/* Speed up sigcheck() when none tripped */
|
||||||
static volatile sig_atomic_t is_tripped = 0;
|
static volatile sig_atomic_t is_tripped = 0;
|
||||||
|
|
|
@ -80,7 +80,7 @@ int Py_DebugFlag; /* Needed by parser.c */
|
||||||
int Py_VerboseFlag; /* Needed by import.c */
|
int Py_VerboseFlag; /* Needed by import.c */
|
||||||
int Py_QuietFlag; /* Needed by sysmodule.c */
|
int Py_QuietFlag; /* Needed by sysmodule.c */
|
||||||
int Py_InteractiveFlag; /* Needed by Py_FdIsInteractive() below */
|
int Py_InteractiveFlag; /* Needed by Py_FdIsInteractive() below */
|
||||||
int Py_InspectFlag; /* Needed to determine whether to exit at SystemError */
|
int Py_InspectFlag; /* Needed to determine whether to exit at SystemExit */
|
||||||
int Py_NoSiteFlag; /* Suppress 'import site' */
|
int Py_NoSiteFlag; /* Suppress 'import site' */
|
||||||
int Py_BytesWarningFlag; /* Warn on str(bytes) and str(buffer) */
|
int Py_BytesWarningFlag; /* Warn on str(bytes) and str(buffer) */
|
||||||
int Py_DontWriteBytecodeFlag; /* Suppress writing bytecode files (*.py[co]) */
|
int Py_DontWriteBytecodeFlag; /* Suppress writing bytecode files (*.py[co]) */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue