by wiredfool · 9y ago · 0 comments
https://www.google.com/search?q=python+universal+newlines+mo...
Edit: added the PEP (it's from 2002) and excerpt from it:
https://www.python.org/dev/peps/pep-0278/
This PEP discusses a way in which Python can support I/O on files which have a newline format that is not the native format on the platform, so that Python on each platform can read and import files with CR (Macintosh), LF (Unix) or CR LF (Windows) line endings.