On 02/09/12 17:09, Ray Jones wrote:
But didn't I read somewhere that you can reset an iterator to go through
the whole process again?
In general, no.
The usual way to "reset" an iterator is to re-create it.
walker = os.walk("/home/steve/start")
# ... process files in walker
walker = os.walk("/home/steve/start")
# ... and process them again
--
Steven
_______________________________________________
Tutor maillist - [email protected]
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor