[Python-checkins] cpython (2.7): Issue #23400: Add notes about the sem_open support of the host OS to

berker.peksag python-checkins at python.org
Wed Apr 8 17:12:41 CEST 2015


https://hg.python.org/cpython/rev/c2f6b3677630
changeset:   95491:c2f6b3677630
branch:      2.7
parent:      95489:e52571aad42f
user:        Berker Peksag <berker.peksag at gmail.com>
date:        Wed Apr 08 18:12:53 2015 +0300
summary:
  Issue #23400: Add notes about the sem_open support of the host OS to
"Pipes and Queues" and "Synchronization between processes" subsections.

Patch by Davin Potts.

files:
  Doc/library/multiprocessing.rst |  25 ++++++++++++++------
  1 files changed, 17 insertions(+), 8 deletions(-)


diff --git a/Doc/library/multiprocessing.rst b/Doc/library/multiprocessing.rst
--- a/Doc/library/multiprocessing.rst
+++ b/Doc/library/multiprocessing.rst
@@ -160,14 +160,6 @@
 Without using the lock output from the different processes is liable to get all
 mixed up.
 
-.. warning::
-
-   Some of this package's functionality requires a functioning shared semaphore
-   implementation on the host operating system. Without one, the
-   :mod:`multiprocessing.synchronize` module will be disabled, and attempts to
-   import it will result in an :exc:`ImportError`. See
-   :issue:`3770` for additional information.
-
 
 Sharing state between processes
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@@ -659,6 +651,15 @@
       immediately without waiting to flush enqueued data to the
       underlying pipe, and you don't care about lost data.
 
+   .. note::
+
+      This class's functionality requires a functioning shared semaphore
+      implementation on the host operating system. Without one, the
+      functionality in this class will be disabled, and attempts to
+      instantiate a :class:`Queue` will result in an :exc:`ImportError`. See
+      :issue:`3770` for additional information.  The same holds true for any
+      of the specialized queue types listed below.
+
 
 .. class:: multiprocessing.queues.SimpleQueue()
 
@@ -965,6 +966,14 @@
    This differs from the behaviour of :mod:`threading` where SIGINT will be
    ignored while the equivalent blocking calls are in progress.
 
+.. note::
+
+   Some of this package's functionality requires a functioning shared semaphore
+   implementation on the host operating system. Without one, the
+   :mod:`multiprocessing.synchronize` module will be disabled, and attempts to
+   import it will result in an :exc:`ImportError`. See
+   :issue:`3770` for additional information.
+
 
 Shared :mod:`ctypes` Objects
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~

-- 
Repository URL: https://hg.python.org/cpython


More information about the Python-checkins mailing list