cpython: a49737bd6086 (original) (raw)

Mercurial > cpython

changeset 95487:a49737bd6086

Issue #23400: Raise same exception on both Python 2 and 3 if sem_open is not available. Patch by Davin Potts. [#23400]

Berker Peksag berker.peksag@gmail.com
date Wed, 08 Apr 2015 17:57:44 +0300
parents e64197dad303(current diff)749fd043de95(diff)
children c7dbb5e7423d
files Doc/library/multiprocessing.rst Lib/multiprocessing/queues.py Misc/NEWS
diffstat 3 files changed, 21 insertions(+), 9 deletions(-)[+] [-] Doc/library/multiprocessing.rst 24 Lib/multiprocessing/queues.py 3 Misc/NEWS 3

line wrap: on

line diff

--- a/Doc/library/multiprocessing.rst +++ b/Doc/library/multiprocessing.rst @@ -262,14 +262,6 @@ that only one process prints to standard Without using the lock output from the different processes is liable to get all mixed up. -.. note:: -

Sharing state between processes

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ @@ -808,6 +800,14 @@ For an example of the usage of queues fo immediately without waiting to flush enqueued data to the underlying pipe, and you don't care about lost data.

.. class:: SimpleQueue() @@ -1183,6 +1183,14 @@ object -- see :ref:multiprocessing-mana[](#l1.33) This differs from the behaviour of :mod:threading` where SIGINT will be ignored while the equivalent blocking calls are in progress. +.. note:: +

Shared :mod:ctypes Objects

~~~~~~~~~~~~~~~~~~~~~~~~~~~~

--- a/Lib/multiprocessing/queues.py +++ b/Lib/multiprocessing/queues.py @@ -35,7 +35,8 @@ class Queue(object): def init(self, maxsize=0, *, ctx): if maxsize <= 0:

--- a/Misc/NEWS +++ b/Misc/NEWS @@ -19,6 +19,9 @@ Core and Builtins Library ------- +- Issue #23400: Raise same exception on both Python 2 and 3 if sem_open is not