gh-106847: Add -X warn_default_encoding in sys.flags Doc (GH-106854)

gh-106847: Add -X warn_default_encoding in sys.flags Doc (GH-106854)
(cherry picked from commit fd84ac0ee0)

Co-authored-by: qqwqqw689 <114795525+qqwqqw689@users.noreply.github.com>
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
This commit is contained in:
Miss Islington (bot) 2023-07-22 09:23:31 -07:00 committed by GitHub
parent 755166e864
commit c332117b52
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -511,9 +511,9 @@ always available.
The :term:`named tuple` *flags* exposes the status of command line The :term:`named tuple` *flags* exposes the status of command line
flags. The attributes are read only. flags. The attributes are read only.
============================= ============================================================================================================== ============================== ==============================================================================================================
attribute flag attribute flag
============================= ============================================================================================================== ============================== ==============================================================================================================
:const:`debug` :option:`-d` :const:`debug` :option:`-d`
:const:`inspect` :option:`-i` :const:`inspect` :option:`-i`
:const:`interactive` :option:`-i` :const:`interactive` :option:`-i`
@ -531,7 +531,8 @@ always available.
:const:`utf8_mode` :option:`-X utf8 <-X>` :const:`utf8_mode` :option:`-X utf8 <-X>`
:const:`safe_path` :option:`-P` :const:`safe_path` :option:`-P`
:const:`int_max_str_digits` :option:`-X int_max_str_digits <-X>` (:ref:`integer string conversion length limitation <int_max_str_digits>`) :const:`int_max_str_digits` :option:`-X int_max_str_digits <-X>` (:ref:`integer string conversion length limitation <int_max_str_digits>`)
============================= ============================================================================================================== :const:`warn_default_encoding` :option:`-X warn_default_encoding <-X>`
============================== ==============================================================================================================
.. versionchanged:: 3.2 .. versionchanged:: 3.2
Added ``quiet`` attribute for the new :option:`-q` flag. Added ``quiet`` attribute for the new :option:`-q` flag.
@ -550,6 +551,9 @@ always available.
Mode <devmode>` and the ``utf8_mode`` attribute for the new :option:`-X` Mode <devmode>` and the ``utf8_mode`` attribute for the new :option:`-X`
``utf8`` flag. ``utf8`` flag.
.. versionchanged:: 3.10
Added ``warn_default_encoding`` attribute for :option:`-X` ``warn_default_encoding`` flag.
.. versionchanged:: 3.11 .. versionchanged:: 3.11
Added the ``safe_path`` attribute for :option:`-P` option. Added the ``safe_path`` attribute for :option:`-P` option.