This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: Problem with multiprocessing module from Python
- From: Jean-Pierre Flori <jpflori at gmail dot com>
- To: cygwin at cygwin dot com
- Date: Tue, 29 Oct 2013 21:22:59 +0000 (UTC)
- Subject: Re: Problem with multiprocessing module from Python
- Authentication-results: sourceware.org; auth=none
- References: <CAHhGz88t8H_xQ6h-a6-aQrMf+wTOVT6gMnx42tMpjs=3=qGVTQ at mail dot gmail dot com> <l4ei86$cos$2 at ger dot gmane dot org> <l4p2uq$ps8$1 at ger dot gmane dot org> <l4p6h3$801$1 at ger dot gmane dot org> <20131029205935 dot GC392 at ednor dot casa dot cgf dot cx> <l4p8oi$24u$1 at ger dot gmane dot org>
Le Tue, 29 Oct 2013 21:19:14 +0000, Jean-Pierre Flori a ÃcritÂ:
> Le Tue, 29 Oct 2013 16:59:35 -0400, Christopher Faylor a ÃcritÂ:
>> If you want this fixed, the easiest way to get that to happen is to
>> post a simple test case which reproduces the problem. That is not the
>> code snippet that you sent. A real working example would be required.
> Sorry about that.
>
> Here you go:
> """
> from multiprocessing import Pool
>
> def f(x): return x
>
> p = pool(2)
>
> p.map(f, [1, 2])
> """
And I managed to introduce a typo. The third line should read Pool, so it
is:
"""
from multiprocessing import Pool
def f(x): return x
p = Pool(2)
p.map(f, [1, 2])
"""
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple