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 vstinner
Recipients Anthony Sottile, abartlet, miss-islington, pitrou, serhiy.storchaka, vstinner
Date 2020-03-03.09:15:47
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
> Thankfully we don't need universal newlines, but no matter if we need them, old versions of Samba will fail to build without a fix-up patch. is available since Python 2.6 and handles different kinds of newlines transparently. Example:

$ python2
Python 2.7.17 (default, Oct 20 2019, 00:00:00) 
>>> f=open("test", "wb"); f.write("a\rb\rc\r"); f.close()
>>> import io;"test"); lines=list(f); f.close(); lines
[u'a\n', u'b\n', u'c\n']

Do you suggest to change the documentation to suggest to open for applications which still care about Python 2?

Note: Python 2 is no longer supported upstream, I strongly advice you to upgrade to Python 3.
Date User Action Args
2020-03-03 09:15:47vstinnersetrecipients: + vstinner, pitrou, serhiy.storchaka, Anthony Sottile, miss-islington, abartlet
2020-03-03 09:15:47vstinnersetmessageid: <>
2020-03-03 09:15:47vstinnerlinkissue37330 messages
2020-03-03 09:15:47vstinnercreate