[issue31389] Give pdb.set_trace() an optional `header` keyword argument

2017-09-22 Thread Barry A. Warsaw

Changes by Barry A. Warsaw :


--
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue31389] Give pdb.set_trace() an optional `header` keyword argument

2017-09-22 Thread Barry A. Warsaw

Barry A. Warsaw added the comment:


New changeset 35425d638c0eeb8377620e016f47df3ae08d7061 by Barry Warsaw in 
branch 'master':
bpo-31389 Add an optional `header` argument to pdb.set_trace() (#3438)
https://github.com/python/cpython/commit/35425d638c0eeb8377620e016f47df3ae08d7061


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue31389] Give pdb.set_trace() an optional `header` keyword argument

2017-09-07 Thread Barry A. Warsaw

Changes by Barry A. Warsaw :


--
keywords: +patch
pull_requests: +3435
stage:  -> patch review

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue31389] Give pdb.set_trace() an optional `header` keyword argument

2017-09-07 Thread Barry A. Warsaw

Barry A. Warsaw added the comment:

And specifically `header` is chosen to match IPython.  Why be different?

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue31389] Give pdb.set_trace() an optional `header` keyword argument

2017-09-07 Thread Barry A. Warsaw

New submission from Barry A. Warsaw:

IPython has a neat little feature where the function that enters the debugger 
takes an optional `header` argument.  If given, it is a string that's printed 
to the console just before the debugger is entered.

https://github.com/ipython/ipython/blob/master/IPython/terminal/embed.py#L177
https://mail.python.org/pipermail/python-dev/2017-September/149256.html

I kind of realized this would be nice to have in pdb, and the code is easy so 
here's the tracking issue.

--
assignee: barry
components: Library (Lib)
messages: 301643
nosy: barry
priority: normal
severity: normal
status: open
title: Give pdb.set_trace() an optional `header` keyword argument
versions: Python 3.7

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com