10/12/2023 0 Comments Foxpro 2.6 newline control![]() I'm sorry to report this as a bug if it's not. Your output file should be opened in binary mode. Windows will automatically place a '\r' in front of the '\n'.Īuthor: Skip Montanaro (skip.montanaro) * ![]() ![]() That's what should happen.Īs I see it, writerow with dialect='excel' should only terminate a line I have dropped cvs.writer and now build each line ![]() MS Windows, when I read the csv file, there is a blank line between each When IĮxecute under windows, each line is terminated by '\r\r\n'. I execute under linux, each line is terminated by '\r\n'. I used writerow to write each row into the file. I used csv.writer to open a file for writing with comma as separator andĭialect='excel'. Extraneous newlines with csv.writer on Windowsīaloan, eric.araujo, python-dev, r.david.murray, sjmachin, skip.montanaro, zacktuĬreated on 22:07 by zacktu, last changed 15:40 by python-dev.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |