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


Groups > comp.lang.python > #75083

Error in example in multiprocessing

Date 2014-07-23 15:57 +0530
Subject Error in example in multiprocessing
From Akshay Verma <veraks18@gmail.com>
Newsgroups comp.lang.python
Message-ID <mailman.12238.1406119862.18130.python-list@python.org> (permalink)

Show all headers | View raw


[Multipart message — attachments visible in raw view] - view raw

Example under
17.2.1.6. Using a pool of workers
<https://docs.python.org/3.4/library/multiprocessing.html#using-a-pool-of-workers>
Has a error. As far as I understand, The input to res sleep function should
be List and not integer.

res = pool.apply_async(sleep, 10)


Let me know if I am wrong.

Best Regards,
Akshay Verma.

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


Thread

Error in example in multiprocessing Akshay Verma <veraks18@gmail.com> - 2014-07-23 15:57 +0530

csiph-web