Skip to content

Commit

Permalink
PEP 686: Add schedule for each spec. (#2496)
Browse files Browse the repository at this point in the history
  • Loading branch information
methane authored Apr 1, 2022
1 parent b70ce67 commit 59091e8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pep-0686.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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``.
Expand All @@ -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
-----------------------------------
Expand All @@ -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
======================
Expand Down

0 comments on commit 59091e8

Please sign in to comment.