]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-96197: Define the behavior of breakpoint if sys.breakpointhook is lost (gh-96231)
authorDong-hee Na <donghee.na@python.org>
Wed, 24 Aug 2022 14:03:36 +0000 (23:03 +0900)
committerGitHub <noreply@github.com>
Wed, 24 Aug 2022 14:03:36 +0000 (23:03 +0900)
Doc/library/functions.rst

index da7de18722f87e3c07258d9fd83e8713fcc07896..fbde9129274e9567738e0551321a005899837b36 100644 (file)
@@ -164,6 +164,8 @@ are always available.  They are listed here in alphabetical order.
    :func:`sys.breakpointhook` can be set to some other function and
    :func:`breakpoint` will automatically call that, allowing you to drop into
    the debugger of choice.
+   If :func:`sys.breakpointhook` is not available to be called, this function will
+   raise :exc:`RuntimeError`.
 
    .. audit-event:: builtins.breakpoint breakpointhook breakpoint