Path: csiph.com!goblin3!goblin1!goblin.stu.neva.ru!uio.no!news.tele.dk!news.tele.dk!small.news.tele.dk!newsgate.cistron.nl!newsgate.news.xs4all.nl!nzpost1.xs4all.net!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.003 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'from:addr:yahoo.co.uk': 0.05; 'check.': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'subject:module': 0.09; 'python': 0.10; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'subject:urllib': 0.16; 'try?': 0.16; 'url:example': 0.16; 'url:urllib': 0.16; 'wrote:': 0.16; 'subject:request': 0.18; 'language': 0.19; '>>>': 0.20; 'versions': 0.20; '2015': 0.20; 'machine': 0.21; '3.2': 0.22; 'lawrence': 0.22; 'sep': 0.22; 'thanks,': 0.24; 'import': 0.24; 'header:In-Reply-To:1': 0.24; 'header:User-Agent:1': 0.26; 'header:X-Complaints-To:1': 0.26; 'chris': 0.26; 'fri,': 0.27; 'subject: ?': 0.27; 'skip:u 20': 0.28; 'correct,': 0.29; 'running.': 0.29; 'anywhere': 0.30; "can't": 0.32; '[1]': 0.32; 'language.': 0.32; 'url:python': 0.33; "d'aprano": 0.33; 'doubt': 0.33; 'steven': 0.33; 'according': 0.36; 'but': 0.36; 'should': 0.36; 'url:org': 0.36; 'url:library': 0.36; 'to:addr:python-list': 0.36; 'pm,': 0.36; 'subject:: ': 0.37; 'received:org': 0.37; 'available.': 0.37; 'why': 0.39; 'sure': 0.39; 'to:addr:python.org': 0.40; 'mark': 0.40; 'still': 0.40; 'url:3': 0.60; 'skip:u 10': 0.61; 'charset:windows-1252': 0.62; 'our': 0.64; 'chrisa': 0.84; 'owing': 0.84; 'pythonistas,': 0.84; '(steven': 0.91 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Mark Lawrence Subject: Re: No request in module urllib ? Date: Fri, 4 Sep 2015 04:19:05 +0100 References: <55E8FA34.8060600@telenet.be> <55E8FF47.409@telenet.be> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: 195.147.66.69 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.2.0 In-Reply-To: X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.20+ Precedence: list 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: 28 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1441336760 news.xs4all.nl 23816 [2001:888:2000:d::a6]:42674 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:96003 On 04/09/2015 03:30, Chris Angelico wrote: > On Fri, Sep 4, 2015 at 12:17 PM, Vincent Vande Vyvre > wrote: >>> import urllib.request >>> urllib.request.urlopen('http://example.org') >>> >> >> Thanks, that works with 3.4.0. No with 3.2.3 > > Hmm, not sure why it wouldn't. According to the docs [1] it should be > available. But I don't have a 3.2 anywhere around me now, so I can't > check. (Steven D'Aprano no doubt can!) What happens when you try? > ImportError? AttributeError? > > ChrisA > > [1] https://docs.python.org/3.2/library/urllib.request.html > If my understanding is correct, owing to the way the time machine works, Steven still has Python versions -3.6 to -0.1 running. -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence