Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > 2 python questions!

Reply
Thread Tools

2 python questions!

 
 
Guest
Posts: n/a
 
      09-05-2007


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/

 
Reply With Quote
 
 
 
 
Christof Winter
Guest
Posts: n/a
 
      09-05-2007
http://www.velocityreviews.com/forums/(E-Mail Removed) 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)
 
Reply With Quote
 
 
 
Reply

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
Re: [Python-Dev] [python-committers] [RELEASED] Python 3.2 rc 1 R. David Murray Python 0 01-17-2011 02:23 PM
Re: [Python-Dev] [python-committers] [RELEASED] Python 3.2 rc 1 Senthil Kumaran Python 0 01-17-2011 10:31 AM
Re: [Python-Dev] [Python-3000] RELEASED Python 2.6a1 and 3.0a3 Martin v. L÷wis Python 0 03-01-2008 10:51 PM
Re: [Python-Dev] [Python-3000] RELEASED Python 2.6a1 and 3.0a3 Paul Moore Python 0 03-01-2008 10:39 PM
Searching comp.lang.python/python-list@python.org (was: UTF-8) skip@pobox.com Python 0 03-10-2007 02:50 PM



Advertisments