Re: urllib's functionality with urllib2

2005-03-14 Thread Monty
No, there is no reason. I think I can import both, but I can't download the file I want using urllib.retrieve. And urllib2 lack the retrieve method (as much as I know at least) which very easily allow you to get a feedback of the download (transfert rate and so on). That was my problem. It's OK now

Re: urllib's functionality with urllib2

2005-03-14 Thread Monty
Thanks very much Fuzzy, It's help a lot. That's exactly what I was looking for. I didn't know much about those handle stuff and what to do with. The next hurdle for me will be to understand and manage multiple threads, and it's good to know that one can find such helpful advices here.( and maybe al

Re: urllib's functionality with urllib2

2005-03-14 Thread Fuzzyman
Monty wrote: > Hello, > Sorry for this maybe stupid newbie question but I didn't find any > answer in all my readings about python: > > With urllib, using urlretrieve, it's possible to get the number of > blocks transferred and the total size of the file. > > Is it possible to get those informatio

Re: urllib's functionality with urllib2

2005-03-13 Thread Harlin Seritt
Is there any reason why you can't import both? import urllib as u import urllib2 as uu -- http://mail.python.org/mailman/listinfo/python-list

urllib's functionality with urllib2

2005-03-13 Thread Monty
Hello, Sorry for this maybe stupid newbie question but I didn't find any answer in all my readings about python: With urllib, using urlretrieve, it's possible to get the number of blocks transferred and the total size of the file. Is it possible to get those informations with urllib2 ? ( I have