cpython/Doc/using
Miss Islington (bot) dd613cf335
bpo-33409: Clarify PEP 538/540 relationship (GH-7534)
While locale coercion and UTF-8 mode turned out to
be complementary ideas rather than competing ones,
it isn't immediately obvious why it's useful to
have both, or how they interact at runtime.

This updates both the Python 3.7 What's New doc
and the PYTHONCOERCECLOCALE and PYTHONUTF8
documentation in an attempt to clarify that
relationship:

- in the respective What's New sections, add a closing paragraph
  explaining which problem each one solves, and pointing to the
  other PEP's section for the specific aspects it relies on the other
  PEP to solve
- use "locale-aware mode" as a more descriptive term for the
  default non-UTF-8 mode
- improve wording conistenccy between the PYTHONCOERCECLOCALE
  and PYTHONUTF8 docs when they cover the same thing (mostly
  related to legacy locale detection and setting the standard
  stream error handler)
- improve the description of the locale coercion trigger conditions
  (including pointing out that setting LC_ALL turns off locale coercion)
- port the full description of the UTF-8 mode behaviour changes
  from PEP 540 into the PYTHONUTF8 documentation
- be explicit that PYTHONIOENCODING still overrides the settings
  for the standard streams
- mention concrete examples of things that do and don't get their
  text encoding assumptions adjusted by the two text encoding
  assumption override techniques
(cherry picked from commit 1bcb8a6368)

Co-authored-by: Nick Coghlan <ncoghlan@gmail.com>
2018-06-09 00:13:53 -07:00
..
cmdline.rst bpo-33409: Clarify PEP 538/540 relationship (GH-7534) 2018-06-09 00:13:53 -07:00
index.rst Fix trivial typo in Readme (GH-2185) 2017-06-14 06:32:06 -07:00
mac.rst bpo-25910: Link redirections in docs (#1933) 2018-01-20 01:25:37 +01:00
unix.rst Improve highlighting of some code blocks. (GH-6401) 2018-04-09 07:56:44 -07:00
venv-create.inc bpo-32540: Update venv documentation (GH-5736) 2018-02-20 20:25:37 -08:00
win_installer.png Removes my username from the documentation. 2015-07-17 11:59:35 -07:00
windows.rst bpo-33503: Fix the broken pypi link in the source and the documentation (GH-6814) (GH-6872) 2018-05-16 10:05:46 -04:00