Title: multiprocessing.reduction is undocumented
Type: Stage:
Components: Documentation Versions: Python 3.7
Status: open Resolution:
Dependencies: Superseder:
Assigned To: docs@python Nosy List: Rajve, docs@python, jnoller, sbt, tpievila
Priority: normal Keywords:

Created on 2013-08-26 06:56 by tpievila, last changed 2020-02-24 10:45 by Rajve.

Messages (2)
msg196184 - (view) Author: Tomi Pieviläinen (tpievila) Date: 2013-08-26 06:56
In older versions (2.x, 3.2, 3.3) multiprocessing.reduction was only mentioned in a one example, with a one comment after it. In the 3.4dev documentation even this was dropped.
msg362584 - (view) Author: Ronald van Elburg (Rajve) Date: 2020-02-24 10:45
Problem still exists in 3.7 documentation. It is unclear to me, even after inspecting issues and commits what proper usage of multiprocessing.reduction is. In case it is now fully internal to the module it would be reassuring to read that in the documentation.

My code seems to be running without explicit reference to the multiprocessing.reduction module. Which suggest that reduction and rising of connections is no longer needed or handled by the module internally.

For python 3.7 I was able to remove the following python 2.7 code:

    def __reduceConnection(self):
        # Reduce the connection object to enable sending it
            self.connection = reduction.reduce_pipe_connection(self.connection)
            self.connection = reduction.reduce_connection(self.connection)

    def riseConnection(self,logger):
        if self.connectionReduced:
  'Connection for subscription to {0} with channel name {1} has risen!'.format(self.senderKey, self.receiverKey))
            red_conn = self.connection
            self.connection = red_conn[0](*red_conn[1])

  'Connection to {0} with channel name {1} had risen already!'.format(self.senderKey, self.receiverKey))
Date User Action Args
2020-02-24 10:45:24Rajvesetnosy: + Rajve

messages: + msg362584
versions: + Python 3.7, - Python 3.4
2013-08-26 06:58:14ezio.melottisetnosy: + jnoller, sbt
2013-08-26 06:56:10tpievilacreate