New submission from Kerrick Staley <kerr...@kerrickstaley.com>:

In PDB, when you use "interact" to enter an interactive shell, the only way to 
exit that shell is to send an end-of-transmission (Ctrl+D) character. In some 
environments, such as Jupyter, this is awkward to do. Here is a StackOverflow 
post where a user encountered this issue:
https://stackoverflow.com/questions/47522316/exit-pdb-interactive-mode-from-jupyter-notebook/62546186

I think that the user should be able to type quit() in order to exit the 
interactive Python shell and go back to the PDB shell, similar to a regular 
interactive Python session. I think you should also support exit() because the 
Python shell supports that one as well (quit() and exit() do the same thing, I 
think the alias exists to help discoverability for new users).

I confirmed this issue on Python 3.6.9 and 3.8.3.

----------
components: Library (Lib)
messages: 372226
nosy: Kerrick Staley
priority: normal
severity: normal
status: open
title: Need command to exit PDB interactive shell
type: enhancement
versions: Python 3.6, Python 3.7, Python 3.8

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue41096>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to