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 loewis
Recipients
Date 2002-06-02.13:01:52
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
Logged In: YES 
user_id=21627

That's not simple at all. Python uses the C library's fgets
function on some systems, which does not support this
feature, either, so you cannot implement it on top of fgets.

If you need to deal with different line end conventions on
various systems, Python 2.3 offers a Universal Newline
Support (PEP 278).

For uses beyond that, I recommend to read the entire file,
then do .split on the resulting string. This is the common
solution to your problem, and it works quite well.
History
Date User Action Args
2007-08-23 14:01:48adminlinkissue563491 messages
2007-08-23 14:01:48admincreate