Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 31e197e

Browse files
committedMay 27, 2018
remove .ds_store
1 parent c651275 commit 31e197e

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed
 

‎Doc/c-api/init.rst

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,20 @@ to 1 and ``-bb`` sets :c:data:`Py_BytesWarningFlag` to 2.
207207
Set by the :option:`-u` option and the :envvar:`PYTHONUNBUFFERED`
208208
environment variable.
209209

210+
.. c:var:: Py_UTF8Mode
211+
212+
Enable Cpython utf-8 mode, which ignores the locale settings, and
213+
uses the UTF-8 encoding by default; changes `sys.stdin` and
214+
`sys.stdout` error handlers to ``surrogateescape``. By default,
215+
it is enabled in the POSIX locale.
216+
217+
Set by the :option:`-X` ``utf8`` option and the :envvar:`PYTHONUTF8`
218+
environment variable.
219+
220+
See :pep:`540` for more details.
221+
222+
.. versionadded:: 3.7
223+
210224
.. c:var:: Py_VerboseFlag
211225
212226
Print a message each time a module is initialized, showing the place

0 commit comments

Comments
 (0)
Please sign in to comment.