Re: [Tutor] Iterating through objects

2009-08-16 Thread Alan Gauld
"GoodPotatoes" wrote print page1.readlines() From this excercise, the first time I read page1 I get all of the lines. The best thing to do is store them in a variable then print them. That way you can access them at will: lines = page1.readlines() print lines # all of them as a list pr

Re: [Tutor] Iterating through objects

2009-08-16 Thread bob gailer
GoodPotatoes wrote: 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() Capture the lines in

[Tutor] Iterating through objects

2009-08-16 Thread GoodPotatoes
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