CSV Parser and unusual (?) linesterminator - misunderstanding?

Peter Otten __peter__ at web.de
Fri Jan 20 05:01:12 EST 2006


Peter Otten wrote:

> memfile = (s + "\n" for s in "1a|1b|1c|1d#2a|2b|2c|2d#3a|3b|3c
> 3d#".split("#") if s)

I just found out that you need not add "\n" to the line.

Peter



More information about the Python-list mailing list