Re: Good handling of input data (was Re: Newbie question)

2007-03-06 Thread Tommy Grav
On Mar 6, 2007, at 8:14 AM, Jussi Salmela wrote: > Tommy Grav kirjoitti: >> >> Thanks for the great response. >> >> So how would you handle this type of error handling? >> My main problem is that occasionally there is an entry >> in the list that is a string: >> >> 0.9834 134.4933 78.009 run11 2

Re: Good handling of input data (was Re: Newbie question)

2007-03-06 Thread Bruno Desthuilliers
Steven D'Aprano a écrit : > On Tue, 06 Mar 2007 05:57:43 -0500, Tommy Grav wrote: > > >>So how would you handle this type of error handling? >>My main problem is that occasionally there is an entry >>in the list that is a string: >> >>0.9834 134.4933 78.009 run11 27 > > > How do you want to dea

Re: Good handling of input data (was Re: Newbie question)

2007-03-06 Thread Jussi Salmela
Tommy Grav kirjoitti: > > Thanks for the great response. > > So how would you handle this type of error handling? > My main problem is that occasionally there is an entry > in the list that is a string: > > 0.9834 134.4933 78.009 run11 27 > > Again I would like to avoid having to individually

Re: Good handling of input data (was Re: Newbie question)

2007-03-06 Thread Steven D'Aprano
On Tue, 06 Mar 2007 05:57:43 -0500, Tommy Grav wrote: > So how would you handle this type of error handling? > My main problem is that occasionally there is an entry > in the list that is a string: > > 0.9834 134.4933 78.009 run11 27 How do you want to deal with such an occasional string? What d

Good handling of input data (was Re: Newbie question)

2007-03-06 Thread Tommy Grav
On Mar 5, 2007, at 12:47 PM, Larry Bates wrote: > Tommy Grav wrote: >> Hi list, >> >>this is somewhat of a newbie question that has irritated me for >> a while. >> I have a file test.txt: >> >> 0.3434 0.5322 0.3345 >> 1.3435 2.3345 5.3433 >> >> and this script >> lines = open("test.txt","