]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-96197: Define the behavior of breakpoint if sys.breakpointhook is lost (gh-96231)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Wed, 24 Aug 2022 14:20:38 +0000 (07:20 -0700)
committerGitHub <noreply@github.com>
Wed, 24 Aug 2022 14:20:38 +0000 (07:20 -0700)
(cherry picked from commit 09563a764ebc54f98087c128419f46cf0822b4b7)

Co-authored-by: Dong-hee Na <donghee.na@python.org>
Doc/library/functions.rst

index d22cc2812dce44f1a297c30e1ae4990d5a4a53a3..ba5d2cf8033959f76a75292102620143e0eb15cb 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