Python evangelists unite!
Harry George
hgg9140 at seanet.com
Fri Nov 30 23:14:40 EST 2001
brucehapman at hotmail.com (brucehapman at hotmail.com) writes:
>
> So, I need some help. I've checked out c.l.p and some on-line
> articles, and I just can't find good practicle examples of a program
> that adds members to instances (or classes) at runtime. Anybody got
> any? I don't want to have to start avoiding my friend....
We have to parse various csv files. The column headers are provided
in the files. For each data line, we generate an instance of a
generic record class, and load the data into attributes whose names
are derived from the column headers. From there the records are easy
to use.
--
Harry George
hgg9140 at seanet.com
More information about the Python-list
mailing list