ASCII delimited files

Thomas A. Bryan tbryan at
Wed Nov 10 21:20:49 EST 1999

"Thomas A. Bryan" wrote:

> class DelimParserField:
>     def __init__(self, name):
> = name
>     def convert(self,value):
>         return value
>     def verify(self,value):
>         pass

One important thing that I didn't point out.  The "name" member 
is the column's name.  (Remember that I was thinking of 
delimited files for import into a database when I wrote these 

Thus, a more sensible application might have something like
employeeListParser = DelimFldParser((EnumField('Department',('HR','IT')),

If anyone uses this stuff, I'd be interested in hearing about it.


More information about the Python-list mailing list