Python3: Is this a bug in urllib?

Justin Ezequiel justin.mailinglists at gmail.com
Wed Oct 20 08:32:39 EDT 2010


On Oct 20, 12:47 am, Johannes Bauer <dfnsonfsdu... at gmx.de> wrote:
>
> >>> from urllib import request; request.URLopener().open("http://google.de")
>

aren't you supposed to call read on the return value of open?
i.e.,
request.URLopener().open("http://google.de").read()



More information about the Python-list mailing list