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

[3.12] Doc: devmode: add -Xdev option to example (GH-106253) #106804

Merged
merged 1 commit into from
Jul 16, 2023
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
2 changes: 1 addition & 1 deletion Doc/library/devmode.rst
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
memory allocators, set the :envvar:`PYTHONMALLOC` environment variable to
``default``.

* Call :func:`faulthandler.enable` at Python startup to install handlers for

Check warning on line 61 in Doc/library/devmode.rst

View workflow job for this annotation

GitHub Actions / Docs

py:const reference target not found: SIGSEGV

Check warning on line 61 in Doc/library/devmode.rst

View workflow job for this annotation

GitHub Actions / Docs

py:const reference target not found: SIGFPE

Check warning on line 61 in Doc/library/devmode.rst

View workflow job for this annotation

GitHub Actions / Docs

py:const reference target not found: SIGABRT

Check warning on line 61 in Doc/library/devmode.rst

View workflow job for this annotation

GitHub Actions / Docs

py:const reference target not found: SIGBUS

Check warning on line 61 in Doc/library/devmode.rst

View workflow job for this annotation

GitHub Actions / Docs

py:const reference target not found: SIGILL
the :const:`SIGSEGV`, :const:`SIGFPE`, :const:`SIGABRT`, :const:`SIGBUS` and
:const:`SIGILL` signals to dump the Python traceback on a crash.

Expand All @@ -81,7 +81,7 @@
ignored for empty strings.

* The :class:`io.IOBase` destructor logs ``close()`` exceptions.
* Set the :attr:`~sys.flags.dev_mode` attribute of :attr:`sys.flags` to

Check warning on line 84 in Doc/library/devmode.rst

View workflow job for this annotation

GitHub Actions / Docs

py:attr reference target not found: sys.flags.dev_mode
``True``.

The Python Development Mode does not enable the :mod:`tracemalloc` module by
Expand Down Expand Up @@ -198,7 +198,7 @@

.. code-block:: shell-session

$ python script.py
$ python -X dev script.py
import os
script.py:10: ResourceWarning: unclosed file <_io.TextIOWrapper name='script.py' mode='r' encoding='UTF-8'>
main()
Expand Down