Python Notes and Examples

CSV Files

I keep a couple of utility functions under my pillow for reading and writing csv files:

If you leave out the lineterminator=os.linesep on GNU/Linux you’ll get funny “\r\n” line-endings.