Re: No request in module urllib ?

2015-09-03 Thread Chris Angelico
On Fri, Sep 4, 2015 at 11:56 AM, Vincent Vande Vyvre wrote: > Python 3.2.3 (default, Jun 18 2015, 21:46:42) > [GCC 4.6.3] on linux2 > Type "help", "copyright", "credits" or "license" for more information. import urllib

Re: No request in module urllib ?

2015-09-03 Thread MRAB
On 2015-09-04 03:17, Vincent Vande Vyvre wrote: Le 04/09/2015 04:08, Chris Angelico a écrit : On Fri, Sep 4, 2015 at 11:56 AM, Vincent Vande Vyvre wrote: Python 3.2.3 (default, Jun 18 2015, 21:46:42) [GCC 4.6.3] on linux2 Type "help", "copyright", "credits" or

Re: No request in module urllib ?

2015-09-03 Thread Chris Angelico
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

Re: No request in module urllib ?

2015-09-03 Thread Vincent Vande Vyvre
Le 04/09/2015 04:30, Chris Angelico a écrit : 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

No request in module urllib ?

2015-09-03 Thread Vincent Vande Vyvre
Hi, Python 3.2.3 (default, Jun 18 2015, 21:46:42) [GCC 4.6.3] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import urllib >>> urllib.request.urlopen('http://example.org') Traceback (most recent call last): File "", line 1, in AttributeError: 'module'

Re: No request in module urllib ?

2015-09-03 Thread Vincent Vande Vyvre
Le 04/09/2015 04:08, Chris Angelico a écrit : On Fri, Sep 4, 2015 at 11:56 AM, Vincent Vande Vyvre wrote: Python 3.2.3 (default, Jun 18 2015, 21:46:42) [GCC 4.6.3] on linux2 Type "help", "copyright", "credits" or "license" for more information. import urllib

Re: No request in module urllib ?

2015-09-03 Thread Mark Lawrence
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