urllib2 - iteration over non-sequence
rplobue at gmail.com
rplobue at gmail.com
Sat Jun 9 18:18:46 EDT 2007
More information about the Python-list mailing list
Sat Jun 9 18:18:46 EDT 2007
- Previous message (by thread): urllib2 - iteration over non-sequence
- Next message (by thread): urllib2 - iteration over non-sequence
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
im trying to get urllib2 to work on my server which runs python
2.2.1. When i run the following code:
import urllib2
for line in urllib2.urlopen('www.google.com'):
print line
i will always get the error:
Traceback (most recent call last):
File "<stdin>", line 1, in ?
TypeError: iteration over non-sequence
Anyone have any answers?
- Previous message (by thread): urllib2 - iteration over non-sequence
- Next message (by thread): urllib2 - iteration over non-sequence
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list