Howdy I haven't been able to find an definitive answer. I am looking through a file(stream:<), for several matching strings. Match definitively starts at the beginning of the stream. As I search, or match, do I start over at the beginning of the stream for each match or do I start at the end of the last search/match? Apparently the file object knows where it is in a stream, but it is unclear whether line_location = readline() keeps track of that location. I see advantages to both protocols, but overall, I would prefer that the next search starts at the end of the last start
TIA, Clayton
_______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor