[Python-Dev] PEP 553: Built-in debug()

Brian Curtin brian at python.org
Wed Sep 6 11:22:48 EDT 2017


On Wed, Sep 6, 2017 at 10:46 AM, Guido van Rossum <guido at python.org> wrote:

> IIRC they indeed insinuate debug() into the builtins. My suggestion is
> also breakpoint().
>

I'm also a bigger fan of the `breakpoint` name. `debug` as a name is
already pretty widely used, plus breakpoint is more specific in naming
what's actually going to happen.

sys.breakpoint_hook() and sys.__breakpoint_hook__ seem reasonable
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-dev/attachments/20170906/8ab4742e/attachment.html>


More information about the Python-Dev mailing list