[TriZPUG] More Fun With Text Processing

Josh Johnson jj at email.unc.edu
Fri Apr 3 20:08:38 CEST 2009


Bradley A. Crittenden wrote:
> If your input does have a consistent delimiter you may want to look at 
> csv.DictReader, which can read the headers and use them as keys to a 
> dictionary it returns you.  The module is called 'csv', but you can 
> supply any delimiter to it.
>
I'll definitely check it out... maybe I can use a regexp to replace 2 or 
more spaces with tabs/commas....

JJ


More information about the TriZPUG mailing list