diff options
author | Barry Warsaw <barry@python.org> | 2017-10-05 16:11:18 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-10-05 16:11:18 (GMT) |
commit | 36c1d1f1e52ba54007cbecb42c5599e5ff62aa52 (patch) | |
tree | 317c296450800bfb25851dd92a62050e26c4c4fd /Misc | |
parent | 4d071897880b7e84e1a217ebe19971c118316970 (diff) | |
download | cpython-36c1d1f1e52ba54007cbecb42c5599e5ff62aa52.zip cpython-36c1d1f1e52ba54007cbecb42c5599e5ff62aa52.tar.gz cpython-36c1d1f1e52ba54007cbecb42c5599e5ff62aa52.tar.bz2 |
PEP 553 built-in breakpoint() function (bpo-31353) (#3355)
Implement PEP 553, built-in breakpoint() with support from sys.breakpointhook(), along with documentation and tests. Closes bpo-31353
Diffstat (limited to 'Misc')
-rw-r--r-- | Misc/NEWS.d/next/Core and Builtins/2017-09-05-14-19-02.bpo-31353.oGZUeJ.rst | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Core and Builtins/2017-09-05-14-19-02.bpo-31353.oGZUeJ.rst b/Misc/NEWS.d/next/Core and Builtins/2017-09-05-14-19-02.bpo-31353.oGZUeJ.rst new file mode 100644 index 0000000..55f81cd --- /dev/null +++ b/Misc/NEWS.d/next/Core and Builtins/2017-09-05-14-19-02.bpo-31353.oGZUeJ.rst @@ -0,0 +1,5 @@ +:pep:`553` - Add a new built-in called ``breakpoint()`` which calls +``sys.breakpointhook()``. By default this imports ``pdb`` and calls +``pdb.set_trace()``, but users may override ``sys.breakpointhook()`` to call +whatever debugger they want. The original value of the hook is saved in +``sys.__breakpointhook__``. |