No request in module urllib ?

Vincent Vande Vyvre vincent.vande.vyvre at telenet.be
Fri Sep 4 04:49:31 CEST 2015


Le 04/09/2015 04:30, Chris Angelico a écrit :
> On Fri, Sep 4, 2015 at 12:17 PM, Vincent Vande Vyvre
> <vincent.vande.vyvre at 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
Sorry, my fault, a typo in the import line.

Vincent


More information about the Python-list mailing list