Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #2206

multiprocessing Pool.imap broken?

Path csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!news.dougwise.org!gegeweb.org!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!feeder.news-service.com!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <yanghatespam@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.000
X-Spam-Evidence '*H*': 1.00; '*S*': 0.00; 'received:209.85.212.46': 0.03; 'received:mail-vw0-f46.google.com': 0.03; 'pypi': 0.04; 'responding': 0.04; 'ubuntu': 0.04; 'interpreter': 0.07; 'python': 0.07; 'advance.': 0.09; '[0,': 0.09; 'subject:broken': 0.09; '>>>': 0.12; '"copyright",': 0.16; '"credits"': 0.16; '"license"': 0.16; '[gcc': 0.16; 'linux2': 0.16; 'python2.6': 0.16; 'received:209.85.212': 0.25; 'cases': 0.25; 'says': 0.25; 'tried': 0.27; 'message-id:@mail.gmail.com': 0.28; 'thanks': 0.29; 'subject:?': 0.29; 'import': 0.32; 'to:addr:python-list': 0.32; "i've": 0.33; 'correctly': 0.35; 'received:209.85': 0.37; 'apr': 0.38; 'received:google.com': 0.38; 'to:addr:python.org': 0.39; 'received:209': 0.39; 'how': 0.39; 'header:Received:5': 0.40; 'hints?': 0.84; 'imap': 0.84
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:from:date:message-id:subject:to :content-type; bh=pHgqVKWGPO+5QwmnWerFWNoTqu1TzbJS3v337NGMhUY=; b=O7bYtZaLXTvvUNb3/ZGJfxZKfFPXd1dt0jwwpYgLPahWTWe97zPbaC87NB5VkoAWjA qvVUJ5lRPNAX7aa7vN2pKpBk3Uzf007qE4ko0sRX7N9Hv0DTiOdkvpdeGLnbMgWMgGhn x2Xq88mczJpem4Th7NHzFN5Ms/XwPjpY5Nd8o=
DomainKey-Signature a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:from:date:message-id:subject:to:content-type; b=VEbe5S1Z9IsYO6iEINuohwH4LHjOVlbMRLH0Ojhr7OBwFiXo5moXADkwhJ54yBWsr8 SwItOylWG8rZgDNBOnevyUzMKfw+x3M06hD+oybffI19DY9ihMBojx2wGmN9MeVZTaUV tb4/NMPNVtCi7sr03VUGzTrDFC0LxB5pfGD1c=
MIME-Version 1.0
From Yang Zhang <yanghatespam@gmail.com>
Date Tue, 29 Mar 2011 18:44:21 -0700
Subject multiprocessing Pool.imap broken?
To python-list@python.org
Content-Type text/plain; charset=ISO-8859-1
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.12
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.5.1301449484.2990.python-list@python.org> (permalink)
Lines 15
NNTP-Posting-Host 82.94.164.166
X-Trace 1301449484 news.xs4all.nl 41103 [::ffff:82.94.164.166]:38739
X-Complaints-To abuse@xs4all.nl
Xref x330-a1.tempe.blueboxinc.net comp.lang.python:2206

Show key headers only | View raw


I've tried both the multiprocessing included in the python2.6 Ubuntu
package (__version__ says 0.70a1) and the latest from PyPI (2.6.2.1).
In both cases I don't know how to use imap correctly - it causes the
entire interpreter to stop responding to ctrl-C's.  Any hints?  Thanks
in advance.

$ python
Python 2.6.5 (r265:79063, Apr 16 2010, 13:57:41)
[GCC 4.4.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import multiprocessing as mp
>>> mp.Pool(1).map(abs, range(3))
[0, 1, 2]
>>> list(mp.Pool(1).imap(abs, range(3)))
^C^C^C^C^\Quit

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

multiprocessing Pool.imap broken? Yang Zhang <yanghatespam@gmail.com> - 2011-03-29 18:44 -0700

csiph-web