PEP 686: Add schedule for each spec. (#2496)
This commit is contained in:
parent
b70ce67e20
commit
59091e8b31
|
@ -49,7 +49,7 @@ Specification
|
||||||
Enable UTF-8 mode by default
|
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
|
Users can still disable UTF-8 mode by setting ``PYTHONUTF8=0`` or
|
||||||
``-X utf8=0``.
|
``-X utf8=0``.
|
||||||
|
@ -68,6 +68,8 @@ When ``warn_default_encoding`` option is specified,
|
||||||
``locale.getpreferredencoding()`` will emit ``EncodingWarning`` like
|
``locale.getpreferredencoding()`` will emit ``EncodingWarning`` like
|
||||||
``open()`` (see also :pep:`597`).
|
``open()`` (see also :pep:`597`).
|
||||||
|
|
||||||
|
This API will be added in Python 3.11.
|
||||||
|
|
||||||
|
|
||||||
Fixing ``encoding="locale"`` option
|
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
|
``TextIOWrapper`` should use locale encoding when ``encoding="locale"`` is
|
||||||
passed even in UTF-8 mode.
|
passed even in UTF-8 mode.
|
||||||
|
|
||||||
|
This issue will be fixed in Python 3.11.
|
||||||
|
|
||||||
|
|
||||||
Backward Compatibility
|
Backward Compatibility
|
||||||
======================
|
======================
|
||||||
|
|
Loading…
Reference in New Issue