Re: [Tutor] Fw: KeyError list?

2007-08-16 Thread Rob Andrews
I wasn't familiar with it prior to this thread, as previously I'd had the good fortune to use normalized data. I guess more pristine data environments spoiled me into writing less robust code. So although I asked what turned out to be the wrong question, I seem to be getting a consensus answer I'm

Re: [Tutor] Fw: KeyError list?

2007-08-16 Thread Kent Johnson
Rob Andrews wrote: > Attempting to massage these into files I can process has involved a > lot of "throw-away" scripting, and I've caught myself doing some > really questionable things with basic data structures, leading to my > original question. Dictionary key errors have been the most common > h

Re: [Tutor] Fw: KeyError list?

2007-08-15 Thread Rob Andrews
At my current day job, I'm handed a wild variety of data from customers, and most of it hasn't been normalized in any reasonable way. File formats are inconsistent, numbers of fields are randomly inconsistent with the headers, etc. Attempting to massage these into files I can process has involved

Re: [Tutor] Fw: KeyError list?

2007-08-15 Thread wesley chun
> I guess I couldn't believe it was that simple. ;-) now if you had asked about the meanings of *all* exceptions (including warnings), or perhaps all the SMTP exceptions in smtplib, that would another matter. ;-) cheers, -- wesley - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - "Core

[Tutor] Fw: KeyError list?

2007-08-15 Thread ALAN GAULD
Forwarding to list for completeness - Forwarded Message From: Rob Andrews <[EMAIL PROTECTED]> To: Alan Gauld <[EMAIL PROTECTED]> Sent: Wednesday, 15 August, 2007 10:32:30 PM Subject: Re: [Tutor] KeyError list? I guess I couldn't believe it was that simple. ;-) Sorry for the delayed, bri