From 59091e8b312a1dd2bd75d23d047a57ee6a287e3e Mon Sep 17 00:00:00 2001 From: Inada Naoki Date: Fri, 1 Apr 2022 11:53:49 +0900 Subject: [PATCH] PEP 686: Add schedule for each spec. (#2496) --- pep-0686.rst | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pep-0686.rst b/pep-0686.rst index e883cfeba..6eb2484d0 100644 --- a/pep-0686.rst +++ b/pep-0686.rst @@ -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 ======================