mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
gh-90300: Fix cmdline.rst (GH-116721)
* Fix the description of the "-b" option. * Add references to environment variables for "-s" and "-X dev" options.
This commit is contained in:
parent
617aca9e74
commit
33662d4e01
2 changed files with 10 additions and 7 deletions
|
@ -242,12 +242,13 @@ Miscellaneous options
|
|||
|
||||
.. option:: -b
|
||||
|
||||
Issue a warning when comparing :class:`bytes` or :class:`bytearray` with
|
||||
:class:`str` or :class:`bytes` with :class:`int`. Issue an error when the
|
||||
option is given twice (:option:`!-bb`).
|
||||
Issue a warning when converting :class:`bytes` or :class:`bytearray` to
|
||||
:class:`str` without specifying encoding or comparing :class:`!bytes` or
|
||||
:class:`!bytearray` with :class:`!str` or :class:`!bytes` with :class:`int`.
|
||||
Issue an error when the option is given twice (:option:`!-bb`).
|
||||
|
||||
.. versionchanged:: 3.5
|
||||
Affects comparisons of :class:`bytes` with :class:`int`.
|
||||
Affects also comparisons of :class:`bytes` with :class:`int`.
|
||||
|
||||
.. option:: -B
|
||||
|
||||
|
@ -386,6 +387,8 @@ Miscellaneous options
|
|||
Don't add the :data:`user site-packages directory <site.USER_SITE>` to
|
||||
:data:`sys.path`.
|
||||
|
||||
See also :envvar:`PYTHONNOUSERSITE`.
|
||||
|
||||
.. seealso::
|
||||
|
||||
:pep:`370` -- Per user site-packages directory
|
||||
|
@ -517,7 +520,7 @@ Miscellaneous options
|
|||
asyncio'``. See also :envvar:`PYTHONPROFILEIMPORTTIME`.
|
||||
* ``-X dev``: enable :ref:`Python Development Mode <devmode>`, introducing
|
||||
additional runtime checks that are too expensive to be enabled by
|
||||
default.
|
||||
default. See also :envvar:`PYTHONDEVMODE`.
|
||||
* ``-X utf8`` enables the :ref:`Python UTF-8 Mode <utf8-mode>`.
|
||||
``-X utf8=0`` explicitly disables :ref:`Python UTF-8 Mode <utf8-mode>`
|
||||
(even when it would otherwise activate automatically).
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue