Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!feeder.erje.net!eu.feeder.erje.net!newsreader4.netcologne.de!news.netcologne.de!feeder1.cambriumusenet.nl!82.197.223.103.MISMATCH!feeder3.cambriumusenet.nl!feed.tweaknews.nl!195.238.0.231.MISMATCH!news.skynet.be!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.029 X-Spam-Evidence: '*H*': 0.94; '*S*': 0.00; 'homepage.': 0.09; 'sentence': 0.09; 'threads,': 0.09; 'whole,': 0.09; 'suggest': 0.11; '24,': 0.16; 'arbitrarily': 0.16; 'called,': 0.16; 'from:addr:mrabarnett.plus.com': 0.16; 'from:addr:python': 0.16; 'from:name:mrab': 0.16; 'message-id:@mrabarnett.plus.com': 0.16; 'segment': 0.16; 'subject: \n ': 0.16; 'urllib': 0.16; 'wrote:': 0.17; 'copied': 0.17; 'feb': 0.19; 'meant': 0.21; "python's": 0.23; 'header:In-Reply-To:1': 0.25; 'header:User-Agent:1': 0.26; 'appear': 0.26; 'am,': 0.27; '"the': 0.29; 'connection': 0.30; 'up.': 0.31; 'function.': 0.33; 'problem': 0.33; 'to:addr:python- list': 0.33; 'returning': 0.35; 'client': 0.36; 'rather': 0.37; 'some': 0.38; 'to:addr:python.org': 0.39; 'received:192': 0.39; 'build': 0.39; 'application': 0.40; 'received:192.168': 0.40; 'think': 0.40; 'your': 0.60; 'skip:u 10': 0.60; 'subject': 0.66; 'response.': 0.67; 'header:Reply-To:1': 0.68; 'believe': 0.69; 'subject:The': 0.71; 'sounds': 0.71; 'reply-to:no real name:2**0': 0.72; 'browser.': 0.81; '2013': 0.84; 'reply-to:addr:python.org': 0.84; 'subject:long': 0.84 X-CM-Score: 0.00 X-CNFS-Analysis: v=2.0 cv=XeZXOvF5 c=1 sm=1 a=0nF1XD0wxitMEM03M9B4ZQ==:17 a=_vX2mLoUpDQA:10 a=mAOtkaehDr0A:10 a=ihvODaAuJD4A:10 a=OUOv7kDek9cA:10 a=8nJEP1OIZ-IA:10 a=EBOSESyhAAAA:8 a=8AHkEIZyAAAA:8 a=r8YsohP2DV0A:10 a=Zk3OmFfbAAAA:8 a=telXIr9K1bU3dpb-ttcA:9 a=wPNLvfGTeEIA:10 a=x46t9oslO7cA:10 a=0nF1XD0wxitMEM03M9B4ZQ==:117 X-AUTH: mrabarnett:2500 Date: Sun, 24 Feb 2013 19:04:28 +0000 From: MRAB User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:17.0) Gecko/20130215 Thunderbird/17.0.3 MIME-Version: 1.0 To: python-list@python.org Subject: Re: "The urlopen() and urlretrieve() functions can cause arbitrarily long delays" References: <9-GdnYm7wMIUz7fMnZ2dnUVZ8rydnZ2d@giganews.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: python-list@python.org List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 22 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1361732669 news.xs4all.nl 6915 [2001:888:2000:d::a6]:36424 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:39773 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.