Author jaraco
Recipients docs@python, jaraco
Date 2015-07-26.15:20:17
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1437924018.14.0.782968400575.issue24729@psf.upfronthosting.co.za>
In-reply-to
Content
In Doc/tutorial/inputoutput.rst, the docs state this about opening a file:

 Normally, files are opened in :dfn:`text mode`, that means, you read and write
 strings from and to the file, which are encoded in a specific encoding (the
 default being UTF-8).

That statement is directly contradicted by the docs for open (Doc/library/functions.rst) which indicate:

 In text mode, if encoding is not specified the encoding used is platform
 dependent: locale.getpreferredencoding(False) is called to get the current
 locale encoding.

The implementation matches the latter indication.
History
Date User Action Args
2015-07-26 15:20:18jaracosetrecipients: + jaraco, docs@python
2015-07-26 15:20:18jaracosetmessageid: <1437924018.14.0.782968400575.issue24729@psf.upfronthosting.co.za>
2015-07-26 15:20:18jaracolinkissue24729 messages
2015-07-26 15:20:17jaracocreate