• Nick Coghlan's avatar
    bpo-33409: Clarify PEP 538/540 relationship (GH-7534) · 1bcb8a63
    Nick Coghlan yazdı
    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
    1bcb8a63
Adı
Son kayıt (commit)
Son güncelleme
.github Loading commit data...
.vsts Loading commit data...
Doc Loading commit data...
Grammar Loading commit data...
Include Loading commit data...
Lib Loading commit data...
Mac Loading commit data...
Misc Loading commit data...
Modules Loading commit data...
Objects Loading commit data...
PC Loading commit data...
PCbuild Loading commit data...
Parser Loading commit data...
Programs Loading commit data...
Python Loading commit data...
Tools Loading commit data...
m4 Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
.travis.yml Loading commit data...
LICENSE Loading commit data...
Makefile.pre.in Loading commit data...
README.rst Loading commit data...
aclocal.m4 Loading commit data...
config.guess Loading commit data...
config.sub Loading commit data...
configure Loading commit data...
configure.ac Loading commit data...
install-sh Loading commit data...
pyconfig.h.in Loading commit data...
setup.py Loading commit data...