[Tutor] Is it syntactic,semantic or runtime?

prasad rao prasadaraon50 at gmail.com
Sat Apr 25 11:38:00 CEST 2009

helloI wrote a function to fetch data using urllib and displaying the data
using internet Explorer.
it is not preparing the html file
So opening blank Explorer after complaining th html file not found.
Where is the problem?
Can I display the data read from a site  without preparing
a html file?


def pp():
@@@ import urllib
@@@ import subprocess
@@@ so=urllib.urlopen('http://www.asstr.org')
@@@ data=so.read()
@@@ de=open('C:pp.html','w')
@@@ de.write(data)
@@@ subprocess.Popen(['C:\Program Files\Internet


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20090425/e0533b8f/attachment-0001.htm>

More information about the Tutor mailing list