No request in module urllib ?

Chris Angelico rosuav at gmail.com
Fri Sep 4 04:30:47 CEST 2015


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


More information about the Python-list mailing list