PEP 553 built-in debug() function (bpo-31353) by warsaw · Pull Request #3355 · python/cpython

added 12 commits

September 4, 2017 09:26
Found by Kirit Sankar Gupta.
* debug() calls sys.debughook()
* sys.debughook() by default calls pdb.set_trace()
* Add sys.__debughook__ to preserve the original.
Use Argument Clinic for the debug() docstring.

@warsaw warsaw changed the title PEP 553 built-in debug() function PEP 553 built-in debug() function (bpo-31353)

Sep 5, 2017

@warsaw

freddrake

vstinner

Barry Warsaw added 6 commits

October 3, 2017 19:47
The biggest change is to use a setUp() that ensures a clean slate for the
tests, regardless of whether sys.breakpointhook or PYTHONBREAKPOINT is set.
* Improve the readability of the docstring.
* Add an assertion.
* Use Py_GETENV to obey -E

vstinner

Barry Warsaw added 3 commits

October 5, 2017 10:14

vstinner