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


Groups > comp.lang.python > #96003

Re: No request in module urllib ?

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 <python-python-list@m.gmane.org>
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 <breamoreboy@yahoo.co.uk>
Subject Re: No request in module urllib ?
Date Fri, 4 Sep 2015 04:19:05 +0100
References <55E8FA34.8060600@telenet.be> <CAPTjJmpAF3F=ZxgK4PV+fkpJKMmo_rs+Zvg1mBnypztLY8u2Kw@mail.gmail.com> <55E8FF47.409@telenet.be> <CAPTjJmok_eMtsvQz_CfaNNBXyEZObsZJ8MnABD_KGHEnqu_zcA@mail.gmail.com>
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 <CAPTjJmok_eMtsvQz_CfaNNBXyEZObsZJ8MnABD_KGHEnqu_zcA@mail.gmail.com>
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.20+
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.122.1441336760.8327.python-list@python.org> (permalink)
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

Show key headers only | View raw


On 04/09/2015 03:30, Chris Angelico wrote:
> On Fri, Sep 4, 2015 at 12:17 PM, Vincent Vande Vyvre
> <vincent.vande.vyvre@telenet.be> 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

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


Thread

Re: No request in module urllib ? Mark Lawrence <breamoreboy@yahoo.co.uk> - 2015-09-04 04:19 +0100

csiph-web