Why don't you just use:
print the_page.read()Pythonistas should look at the "Requests"[1] lib for Python mentioned here on HN[2] a few days ago, too.
[1]: http://docs.python-requests.org/en/latest/ [2]: http://news.ycombinator.com/item?id=3094695
Explicit is better than implicit. I think keeping a bit of the verbose helps people know what's going on. That knowledge is infinitely valuable when debugging certain problems or creating solutions that work well.
Have you heard of something called Java? ;)
Re:Python For The Web
by malkarouri on Wednesday October 19, 2011 @09:05AM
(#3129935)
A good language, as a good anything, is a reasonable language. Giving extremes as arguments against sensible middle positions is the way of madness, paralysis, or extremism..
Thats what the post linked to talks about.
The Python community also tends to be quieter than those raving Ruby fanbois - if you'd said appeared to be larger, then I would have agreed with you...