PEP 686: Add schedule for each spec. (#2496)

This commit is contained in:
Inada Naoki 2022-04-01 11:53:49 +09:00 committed by GitHub
parent b70ce67e20
commit 59091e8b31
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 1 deletions

View File

@ -49,7 +49,7 @@ Specification
Enable UTF-8 mode by default
----------------------------
Python enables UTF-8 mode by default.
Python will enable UTF-8 mode by default from Python 3.13.
Users can still disable UTF-8 mode by setting ``PYTHONUTF8=0`` or
``-X utf8=0``.
@ -68,6 +68,8 @@ When ``warn_default_encoding`` option is specified,
``locale.getpreferredencoding()`` will emit ``EncodingWarning`` like
``open()`` (see also :pep:`597`).
This API will be added in Python 3.11.
Fixing ``encoding="locale"`` option
-----------------------------------
@ -87,6 +89,8 @@ This inconsistency should be fixed before making UTF-8 mode default.
``TextIOWrapper`` should use locale encoding when ``encoding="locale"`` is
passed even in UTF-8 mode.
This issue will be fixed in Python 3.11.
Backward Compatibility
======================