PEP 538: Note significant implementation-driven changes

This commit is contained in:
Nick Coghlan 2017-06-18 12:01:45 +10:00
parent 6040eb7483
commit b5f41515a5
1 changed files with 15 additions and 0 deletions

View File

@ -83,6 +83,21 @@ opt in to this locale coercion behaviour for the Python 3.6.x series by
applying the necessary changes as a downstream patch.
Implementation Notes
====================
Attempting to implement the PEP as originally accepted showed that the
proposal to emit locale coercion and compatibility warnings by default
simply wasn't practical (there were too many cases where previously working
code failed *because of the warnings*, rather than because of latent locale
handling defects in the affected code).
As a result, the ``PY_WARN_ON_C_LOCALE`` config flag was removed, and replaced
with a runtime ``PYTHONCOERCECLOCALE=warn`` environment variable setting
that allows developers and system integrators to opt-in to receiving locale
coercion and compatibility warnings, without emitting them by default.
Background
==========