[Tutor] Iterating through objects
GoodPotatoes
goodpotatoes at yahoo.com
Sun Aug 16 19:56:05 CEST 2009
I'm not sure if I've been searching using the correct terms. After I've iterated through an object, such as a cursor or webpage, how do I get back to the "top"?
e.g.
tutorial from http://www.daniweb.com/code/snippet563.html#
print page1.readlines()
>From this excercise, the first time I read page1 I get all of the lines. The next time, I only get []. What happens to all of the info after I've read it?
Do I need to again get the info from the web?
page1 = opener1.open(picture_page)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20090816/49fe0cb3/attachment.htm>
More information about the Tutor
mailing list