Re: iterating over multi-line string

2016-09-11 Thread Terry Reedy
On 9/11/2016 11:34 AM, Doug OLeary wrote: Hey; I have a multi-line string that's the result of reading a file filled with 'dirty' text. I read the file in one swoop to make data cleanup a bit easier - getting rid of extraneous tabs, spaces, newlines, etc. That part's done. Now, I want to co

Re: iterating over multi-line string

2016-09-11 Thread Peter Otten
Doug OLeary wrote: > Hey; > > I have a multi-line string that's the result of reading a file filled with > 'dirty' text. I read the file in one swoop to make data cleanup a bit > easier - getting rid of extraneous tabs, spaces, newlines, etc. That > part's done. > > Now, I want to collect data

Re: iterating over multi-line string

2016-09-11 Thread Doug OLeary
Hey; Never mind; I finally found the meaning of stopiteration. I guess my google-foo is a bit weak this morning. Thanks Doug -- https://mail.python.org/mailman/listinfo/python-list