471,337 Members | 1,308 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,337 software developers and data experts.

2 python questions!



Hi python community!
First question has to do with threading support. There is the
following simple case:
I have a dictionnary that gets it's values -which are url's-from a
function. Sort of

dictionnary['1'] = "http://www.google.com"
dictionnary['2'] = "http://www.python.com"
.....

I need to fill in the dictionnary with some url's. If I do it on
the simplest way, it would be like:

for i in range(20):
dictionnary["%s" % i] = get_urls(args)

and wait a long long time till it finishes. Can I do it easily with
threads, without having to add too much code? Ideal case would be
if all threads start simultaneously :)
Now the second question has to do with images retrieval and
manipulation. Which libraries do you propose to work with to
retrieve and resize images from the web?
Thanks in advance for any help!
--
Handyman Franchises. Click Here.
http://tagline.hushmail.com/fc/Ioyw6...b7fSaLiZQZqWk/

Sep 5 '07 #1
1 950
re**********@hushmail.com wrote:
[...]
Now the second question has to do with images retrieval and
manipulation. Which libraries do you propose to work with to
retrieve and resize images from the web?
urllib.urlretrieve() and
Python Imaging Library (PIL)
Sep 5 '07 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

220 posts views Thread by Brandon J. Van Every | last post: by
4 posts views Thread by RosalieM | last post: by
4 posts views Thread by Skip Montanaro | last post: by
reply views Thread by python-help-bounces | last post: by
114 posts views Thread by Maurice LING | last post: by
3 posts views Thread by Alessandro Brollo | last post: by
9 posts views Thread by Dieter Vanderelst | last post: by
8 posts views Thread by Krypto | last post: by
8 posts views Thread by Derek Martin | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.