Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > Re: "The urlopen() and urlretrieve() functions can cause arbitrarilylong delays"

Reply
Thread Tools

Re: "The urlopen() and urlretrieve() functions can cause arbitrarilylong delays"

 
 
MRAB
Guest
Posts: n/a
 
      02-24-2013
On 2013-02-24 18:55, Ian Kelly wrote:
> On Sun, Feb 24, 2013 at 10:48 AM, 7segment <(E-Mail Removed)> wrote:
>> Hi!
>>
>> The subject is a segment of a sentence which I copied from Python's
>> official homepage. In whole, it reads:
>>
>> "The urlopen() and urlretrieve() functions can cause arbitrarily long
>> delays while waiting for a network connection to be set up. This means
>> that it is difficult to build an interactive Web client using these
>> functions without using threads."

>
> I believe what this is warning about is that if a network connection
> is not immediately available when the functions are called, they will
> block while waiting for one rather than returning control to the
> calling function. If used in an interactive client without threads,
> this would cause the application to appear to "hang" while urllib
> waits for a response. I don't think it's meant to suggest that urllib
> is responsible for the delays; that sounds like a problem with your
> network configuration.
>

When in doubt, check some other way, such as with a browser.
 
Reply With Quote
 
 
 
 
Thomas Rachel
Guest
Posts: n/a
 
      02-24-2013
Am 24.02.2013 20:27 schrieb 7segment:

>> When in doubt, check some other way, such as with a browser.

>
> Thank you Ian. Browser is not a good idea, because I need this tool to
> work automatically. I don't have time to check and compare the response
> times manually and put them into the database.


Of course not for the long term. But you could check e.g. if MSN needs
60 s as well from the browser. If not, there could be something else wrong.

Thomas
 
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:"The urlopen() and urlretrieve() functions can cause arbitrarily longdelays" rh Python 0 02-24-2013 10:46 PM
Re: "The urlopen() and urlretrieve() functions can cause arbitrarilylong delays" Ian Kelly Python 0 02-24-2013 06:55 PM
if EOF = -1, can't a valid character == EOF and cause problems? Kobu C Programming 10 03-04-2005 10:40 PM
will all these messages cause a problem . I am a new subscriber and my computer is downloading 100,000 messages. Will this cause any kind of a problem with my ability to store other items?? Camille White Camille White Computer Support 9 11-08-2004 01:13 AM
please help me in distinguish redefining functions, overloading functions and overriding functions. Xiangliang Meng C++ 1 06-21-2004 03:11 AM



Advertisments