Message247433
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. |
|
Date |
User |
Action |
Args |
2015-07-26 15:20:18 | jaraco | set | recipients:
+ jaraco, docs@python |
2015-07-26 15:20:18 | jaraco | set | messageid: <1437924018.14.0.782968400575.issue24729@psf.upfronthosting.co.za> |
2015-07-26 15:20:18 | jaraco | link | issue24729 messages |
2015-07-26 15:20:17 | jaraco | create | |
|