Checking out Head First Programming

Dec 21, 2009 21:59

I'll write a complete review at some point, but just wanted to make a comment about the urllib.request exercise it has in Chapter 3 ( Read more... )

Leave a comment

Comments 1

anonymous March 3 2010, 15:19:30 UTC
Hey I found your blog while searching for the same problem.Even I was stuck on chapter 2 due to this problem.I couldn't install python3 as its not packaged yet for Fedora 12.Anyways another workaround would be to write the code according to python 2.x :-
import urllib
page = urllib.urlopen("http://beans-r-us.biz/prices.html")
text = page.read().decode("utf8")
print(text)

As far as the book is concerned I'm loving it.Waiting for your review
-Abhishek

Reply


Leave a comment

Up