urllib2 and exceptions

Gabriel Genellina gagsl-py2 at yahoo.com.ar
Tue Sep 30 09:27:50 CEST 2008

En Sun, 28 Sep 2008 22:44:20 -0300, robean <st1999 at gmail.com> escribió:

> Many thanks for your reply. I was simply under the impression that
> 'import urllib2' would take care of the namespace issue and simply
> import everything in urlib2, making it unnecessary to have to
> reference HTTPError and URLError.  Sorry for being dense about this
> (I'm very new to Python).. Again, thanks for your help.

That's a common misconception - see this article:

Gabriel Genellina

More information about the Python-list mailing list