A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2017-September/149323.html below:

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

[Python-Dev] PEP 553: Built-in debug()Barry Warsaw barry at python.org
Thu Sep 7 17:25:25 EDT 2017
On Sep 7, 2017, at 12:09, Fernando Perez <fperez.net at gmail.com> wrote:
>> The PEP has an open issue regarding breakpoint() taking *args and **kws, which would just be passed through the call stack.  It sounds like you’d be in favor of that enhancement.
> 
> If you go witht the `(*a, **k)` pass-through API, would you have a special keyword-only arg called 'header' or similar? That seems like a decent compromise to support the feature with the builtin while allowing other implementations to offer more features. In any case, +1 to a pass-through API, as long as the built-in supports some kind of mechanism to help the user get their bearings with "you're here" type messages.

I don’t think I want to specify what goes in *args or **kws, I just want to pass them straight through.  The user will have to have some understanding of what debugger they are using and what arguments their breakpoint hook allows.

I’ll see what it takes to add `header` to pdb.set_trace(), but I’ll do that as a separate PR (i.e. not as part of this PEP).

Cheers,
-Barry

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 273 bytes
Desc: Message signed with OpenPGP
URL: <http://mail.python.org/pipermail/python-dev/attachments/20170907/097f6150/attachment.sig>
More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4