multiprocessing+simplehttpserver+windows

N

Nabla Kvadrat

Hi, can someone please help me with/explain if following problem can
be somehow resolved?

I have Py2.6.1 win32 and I'm playing around with multiprocessing
module. Trying examples here:
http://docs.python.org/library/multiprocessing.html#examples. Example
with SimpleHTTPServer.HttpServer don't work because of socket.fromfd
in multiprocessing.reduction. If number of processes is >1 it ends
with traceback ....... pickle.: 'module' object has no attribute
'fromfd'.
As I understand socket.fromfd on windows is not implemented (?), so
why the example script is care about platform
if sys.platform == 'win32':
import multiprocessing.reduction
and finally, is there some easy (no patching and recompiling python
from source) way to get this example to work on win32 platform?
Thanks for any help, I'm Python amateur...
N.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,780
Messages
2,569,608
Members
45,247
Latest member
crypto tax software1

Latest Threads

Top