Re: Catching exceptions with multi-processing

2015-06-19 Thread Andres Riancho
Fabien, My recommendation is that you should pass some extra arguments to the task: * A unique task id * A result multiprocessing.Queue When an exception is raised you put (unique_id, exception) to the queue. When it succeeds you put (unique_id, None). In the main process you consu

Re: Suggestion: PEP for tracking vulnerable Python packages

2015-05-12 Thread Andres Riancho
Grant, On Tue, May 12, 2015 at 5:16 PM, Grant Murphy wrote: > Hi, > > When pulling in a dependency via pip it is currently difficult to reason about > whether there are any vulnerabilities associated with the package version you > are using. I think the Python package management infrastructure co

Re: multiprocessing module backport from 3 to 2.7 - spawn feature

2015-01-29 Thread Andres Riancho
On Wed, Jan 28, 2015 at 3:06 PM, Skip Montanaro wrote: > > On Wed, Jan 28, 2015 at 7:07 AM, Andres Riancho > wrote: >> >> The feature I'm specially interested in is the ability to spawn >> processes [1] instead of forking, which is not present in the 2.7 >>

multiprocessing module backport from 3 to 2.7 - spawn feature

2015-01-28 Thread Andres Riancho
List, I've been searching around for a multiprocessing module backport from 3 to 2.7.x and the closest thing I've found was celery's billiard [0] which seems to be a work in progress. The feature I'm specially interested in is the ability to spawn processes [1] instead of forking, which is not pr