[issue31729] multiprocesssing.Pool.map_async() undocumented

2017-10-08 Thread g...@nlc.co.nz

New submission from [email protected] :

To monitor how much of my multiprocess.Pool is completed I am forced to use 
undocumented features which I fear mat changed in the future. Especially 
result._number_left which looks like a private variable. Can you please 
document the result from Pool.map_async() and make the _number_left a proper 
method, e.g result.number_completed()

result = pool.map_async(process_employee, gen_emps, chunksize=1)
while not result.ready():
   left = result._number_left

It is not possible to pass Pipes, Queues or Shared memory to Pool workers in 
order for them to signal back to the master when them have completed a job.

--
components: Library (Lib)
messages: 303918
nosy: [email protected]
priority: normal
severity: normal
status: open
title: multiprocesssing.Pool.map_async() undocumented
type: enhancement
versions: Python 2.7

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



[issue31730] list unhashable, can not be use as key to dict

2017-10-08 Thread g...@nlc.co.nz

New submission from [email protected] :

A list can no be used as the key to a dict, apparently because it is 
"unhashable": TypeError: unhashable type: 'list'.

The code must exist to hash object like this a tuple is hashable and can be 
constructed from a list.

--
components: Interpreter Core
messages: 303919
nosy: [email protected]
priority: normal
severity: normal
status: open
title: list unhashable, can not be use as key to dict
type: enhancement
versions: Python 2.7

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



[issue31729] multiprocesssing.pool.AsyncResult undocumented field

2017-10-08 Thread g...@nlc.co.nz

Change by [email protected] :


--
title: multiprocesssing.Pool.map_async() undocumented -> 
multiprocesssing.pool.AsyncResult undocumented field

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