By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
457,978 Members | 1,093 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 457,978 IT Pros & Developers. It's quick & easy.

asyncore module

P: 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
Jul 18 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.