Access CSV data by column name..

2005-09-21 Thread Michael March
I have seen a few recipes out there that allow for access to DB-API
columns by their name instead of column number.. I was wondering if
anyone knew of any code snippets that allow for the same thing with the
CSV module?

thanks!



-- 
http://mail.python.org/mailman/listinfo/python-list


Modifying body of select message in a 'mbox' file.

2006-02-24 Thread Michael March
I am been playing with the 'email' and 'mailbox' modules trying to read
in an email at a time from an mbox file, add something to the body of a
message and then write that change back out in 'mbox' format again.

Is there any code floating around out there that allows you to take a
message from 'mailbox', modify it with 'email' and then write it back
out via 'mailbox' again?

thanks!

-- 
http://mail.python.org/mailman/listinfo/python-list