Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PEP 686: Add schedule for each spec. #2496

Merged
merged 1 commit into from
Apr 1, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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