Skip to content

bpo-31389 Add an optional header argument to pdb.set_trace()#3438

Merged
warsaw merged 6 commits intomasterfrom
pdb-header
Sep 22, 2017
Merged

bpo-31389 Add an optional header argument to pdb.set_trace()#3438
warsaw merged 6 commits intomasterfrom
pdb-header

Conversation

@warsaw
Copy link
Copy Markdown
Member

@warsaw warsaw commented Sep 7, 2017

Comment thread Doc/library/pdb.rst
otherwise being debugged (e.g. when an assertion fails). If given,
``header`` is printed to the console just before debugging begins.

.. versionadded:: 3.7
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I never remember if versionadded in a function will cause sphinx to report that the whole function is new, or will display the text that you wrote.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the review! It displays the text; from a local build:

New in version 3.7: The keyword-only argument header.

@warsaw warsaw merged commit 35425d6 into master Sep 22, 2017
@warsaw warsaw deleted the pdb-header branch September 22, 2017 16:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants