Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #39773

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

Date 2013-02-24 19:04 +0000
From MRAB <python@mrabarnett.plus.com>
Subject Re: "The urlopen() and urlretrieve() functions can cause arbitrarily long delays"
References <9-GdnYm7wMIUz7fMnZ2dnUVZ8rydnZ2d@giganews.com> <CALwzidncqRCn3dVXuzJeYUp5xOLGAku0dwEB_=HEDdfnrc4VrQ@mail.gmail.com>
Newsgroups comp.lang.python
Message-ID <mailman.2425.1361732669.2939.python-list@python.org> (permalink)

Show all headers | View raw


On 2013-02-24 18:55, Ian Kelly wrote:
> On Sun, Feb 24, 2013 at 10:48 AM, 7segment <7segment@live.com> 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.

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

"The urlopen() and urlretrieve() functions can cause arbitrarily long delays" 7segment <7segment@live.com> - 2013-02-24 11:48 -0600
  Re: "The urlopen() and urlretrieve() functions can cause arbitrarily long delays" Ian Kelly <ian.g.kelly@gmail.com> - 2013-02-24 11:55 -0700
    Re: "The urlopen() and urlretrieve() functions can cause arbitrarily long delays" 7segment <7segment@live.com> - 2013-02-24 13:25 -0600
  Re: "The urlopen() and urlretrieve() functions can cause arbitrarily long delays" MRAB <python@mrabarnett.plus.com> - 2013-02-24 19:04 +0000
    Re: "The urlopen() and urlretrieve() functions can cause arbitrarily long delays" 7segment <7segment@live.com> - 2013-02-24 13:27 -0600
      Re: "The urlopen() and urlretrieve() functions can cause arbitrarily long delays" Thomas Rachel <nutznetz-0c1b6768-bfa9-48d5-a470-7603bd3aa915@spamschutz.glglgl.de> - 2013-02-24 22:30 +0100
  Re: "The urlopen() and urlretrieve() functions can cause arbitrarily long delays" rh <richard_hubbe11@lavabit.com> - 2013-02-24 14:46 -0800

csiph-web