I\'m trying to use Python 3.2 on a Windows computer to write a simple CSV file, however I\'m having no luck. From the csv module documentation for Python 3.2:
To directly answer your question, you should be able to use the lineterminator formatting parameter:
...so modifying this line should work (untested):
>>> spamWriter = csv.writer(open('eggs.csv', 'w'), delimiter=' ',
... quotechar='|', quoting=csv.QUOTE_MINIMAL, lineterminator='\n')
As for why the example doesn't work out-of-the box, kind of looks like a bug to me.