What is universal newlines in python?

Universal newlines in python is a manner of interpreting text streams in which all of the following are recognized as ending a line: the Unix end-of-line convention’\n’, the Windows convention ‘\r\n’, and the old Macintosh convention ‘\r’. See PEP 278 and PEP 3116, as well as bytes.splitlines() for an additional use.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.