This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Gertjan van den Burg
Recipients Gertjan van den Burg, nascheme, skip.montanaro, terry.reedy, vmax
Date 2018-11-08.17:27:53
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1541698073.52.0.788709270274.issue30825@psf.upfronthosting.co.za>
In-reply-to
Content
Note that the current CSV parser in _csv.c doesn't require the line terminator, it eats up \r and \n where necessary. See: 

https://github.com/python/cpython/blob/fd512d76456b65c529a5bc58d8cfe73e4a10de7a/Modules/_csv.c#L752

This is why the line terminator isn't detected and doesn't need to be detected.

Also, files that use the \r line terminator exist and are parsed correctly at the moment. See for example: https://raw.githubusercontent.com/hadley/data-fuel-economy/master/1998-2008/2008.csv
History
Date User Action Args
2018-11-08 17:27:53Gertjan van den Burgsetrecipients: + Gertjan van den Burg, skip.montanaro, nascheme, terry.reedy, vmax
2018-11-08 17:27:53Gertjan van den Burgsetmessageid: <1541698073.52.0.788709270274.issue30825@psf.upfronthosting.co.za>
2018-11-08 17:27:53Gertjan van den Burglinkissue30825 messages
2018-11-08 17:27:53Gertjan van den Burgcreate