Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > asyncore module

Thread Tools

asyncore module

Markus Franz
Posts: n/a

Some URLs are passed to a python script as command line options like the
following command


(The number of passed URLs varies...)

Now my problem is:

How can I load and show the contents of these websites (from sys.argv) in
parallel by using the asyncore module? At the moment I use the following
script (it uses one child process for each URL):

import sys, os
for url in sys.argv[1:]:
pid = os.fork()
if pid == 0:
# placeholder for the loading routine
print website_contents

Is the same possible with the asyncore module?
Thank you.

Markus Franz

Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
asyncore module for loading websites Markus Franz Python 2 06-24-2004 04:11 PM
asyncore question Stéphane Ninin Python 6 09-29-2003 02:42 PM
asyncore: handle_accept() question? Chris Python 3 08-28-2003 01:36 AM
possible error in socketmodule / asyncore on win32 Garth Python 0 07-24-2003 08:18 PM
asyncore asynchat Michael Welsh Python 0 07-15-2003 11:32 AM