Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #2206
| From | Yang Zhang <yanghatespam@gmail.com> |
|---|---|
| Date | 2011-03-29 18:44 -0700 |
| Subject | multiprocessing Pool.imap broken? |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.5.1301449484.2990.python-list@python.org> (permalink) |
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
multiprocessing Pool.imap broken? Yang Zhang <yanghatespam@gmail.com> - 2011-03-29 18:44 -0700
csiph-web