Re: [Tutor] Defining Exceptions

2011-02-03 Thread Emile van Sebille
Hi Tom, First, you sent this only to me -- be sure to reply all so that the group can participate. On 2/2/2011 10:25 AM Tom Brauch said... > Thanks, Emile. > > If I replace the question marks in my script with break it throws out > everything before the break (<) and gives me the header starti

Re: [Tutor] Defining Exceptions

2011-02-02 Thread davidheiserca
with this: lines = resp.splitlines[:2] This part, I don't understand: for x,row in enumerate(lines): lines[x]=row.split(',') - Original Message - From: Tom Brauch To: tutor@python.org Sent: Wednesday, February 02, 2011 6:51 AM Subj

Re: [Tutor] Defining Exceptions

2011-02-02 Thread Emile van Sebille
On 2/2/2011 6:51 AM Tom Brauch said... All, I am a python neophyte and not terrible well versed in programming (as will become obvious shortly) I have a script which is reading a serial device on a schedule. The device outputs a header at the beginning of every read. I have a data file which

[Tutor] Defining Exceptions

2011-02-02 Thread Tom Brauch
All, I am a python neophyte and not terrible well versed in programming (as will become obvious shortly) I have a script which is reading a serial device on a schedule. The device outputs a header at the beginning of every read. I have a data file which I am appending and would like to eliminat