[issue18837] multiprocessing.reduction is undocumented

2020-02-24 Thread Ronald van Elburg


Ronald van Elburg  added the comment:

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:

'''python
def __reduceConnection(self):
# Reduce the connection object to enable sending it
if(sys.platform=='win32'):
self.connection = reduction.reduce_pipe_connection(self.connection)
else:
self.connection = reduction.reduce_connection(self.connection)

def riseConnection(self,logger):
if self.connectionReduced:
logger.info('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])
self.connectionReduced=False

else:
logger.info('Connection to {0} with channel name {1} had risen 
already!'.format(self.senderKey, self.receiverKey))
'''

--
nosy: +Rajve
versions: +Python 3.7 -Python 3.4

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue18837] multiprocessing.reduction is undocumented

2013-08-26 Thread Tomi Pieviläinen

New submission from Tomi Pieviläinen:

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.

--
assignee: docs@python
components: Documentation
messages: 196184
nosy: docs@python, tpievila
priority: normal
severity: normal
status: open
title: multiprocessing.reduction is undocumented
versions: Python 3.4

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18837
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue18837] multiprocessing.reduction is undocumented

2013-08-26 Thread Ezio Melotti

Changes by Ezio Melotti ezio.melo...@gmail.com:


--
nosy: +jnoller, sbt

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18837
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com