Skip to content

Commit c332117

Browse files
miss-islingtonqqwqqw689sobolevn
authored
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 fd84ac0) Co-authored-by: qqwqqw689 <[email protected]> Co-authored-by: Nikita Sobolev <[email protected]>
1 parent 755166e commit c332117

File tree

1 file changed

+25
-21
lines changed

1 file changed

+25
-21
lines changed

Doc/library/sys.rst

Lines changed: 25 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -511,27 +511,28 @@ always available.
511511
The :term:`named tuple` *flags* exposes the status of command line
512512
flags. The attributes are read only.
513513

514-
============================= ==============================================================================================================
515-
attribute flag
516-
============================= ==============================================================================================================
517-
:const:`debug` :option:`-d`
518-
:const:`inspect` :option:`-i`
519-
:const:`interactive` :option:`-i`
520-
:const:`isolated` :option:`-I`
521-
:const:`optimize` :option:`-O` or :option:`-OO`
522-
:const:`dont_write_bytecode` :option:`-B`
523-
:const:`no_user_site` :option:`-s`
524-
:const:`no_site` :option:`-S`
525-
:const:`ignore_environment` :option:`-E`
526-
:const:`verbose` :option:`-v`
527-
:const:`bytes_warning` :option:`-b`
528-
:const:`quiet` :option:`-q`
529-
:const:`hash_randomization` :option:`-R`
530-
:const:`dev_mode` :option:`-X dev <-X>` (:ref:`Python Development Mode <devmode>`)
531-
:const:`utf8_mode` :option:`-X utf8 <-X>`
532-
:const:`safe_path` :option:`-P`
533-
:const:`int_max_str_digits` :option:`-X int_max_str_digits <-X>` (:ref:`integer string conversion length limitation <int_max_str_digits>`)
534-
============================= ==============================================================================================================
514+
============================== ==============================================================================================================
515+
attribute flag
516+
============================== ==============================================================================================================
517+
:const:`debug` :option:`-d`
518+
:const:`inspect` :option:`-i`
519+
:const:`interactive` :option:`-i`
520+
:const:`isolated` :option:`-I`
521+
:const:`optimize` :option:`-O` or :option:`-OO`
522+
:const:`dont_write_bytecode` :option:`-B`
523+
:const:`no_user_site` :option:`-s`
524+
:const:`no_site` :option:`-S`
525+
:const:`ignore_environment` :option:`-E`
526+
:const:`verbose` :option:`-v`
527+
:const:`bytes_warning` :option:`-b`
528+
:const:`quiet` :option:`-q`
529+
:const:`hash_randomization` :option:`-R`
530+
:const:`dev_mode` :option:`-X dev <-X>` (:ref:`Python Development Mode <devmode>`)
531+
:const:`utf8_mode` :option:`-X utf8 <-X>`
532+
:const:`safe_path` :option:`-P`
533+
:const:`int_max_str_digits` :option:`-X int_max_str_digits <-X>` (:ref:`integer string conversion length limitation <int_max_str_digits>`)
534+
:const:`warn_default_encoding` :option:`-X warn_default_encoding <-X>`
535+
============================== ==============================================================================================================
535536

536537
.. versionchanged:: 3.2
537538
Added ``quiet`` attribute for the new :option:`-q` flag.
@@ -550,6 +551,9 @@ always available.
550551
Mode <devmode>` and the ``utf8_mode`` attribute for the new :option:`-X`
551552
``utf8`` flag.
552553

554+
.. versionchanged:: 3.10
555+
Added ``warn_default_encoding`` attribute for :option:`-X` ``warn_default_encoding`` flag.
556+
553557
.. versionchanged:: 3.11
554558
Added the ``safe_path`` attribute for :option:`-P` option.
555559

0 commit comments

Comments
 (0)