[issue27573] code.interact() should print an exit message

Steven D'Aprano report at bugs.python.org
Tue Aug 23 10:49:59 EDT 2016


Steven D'Aprano added the comment:

On Thu, Aug 18, 2016 at 12:26:56PM +0000, Armin Rigo wrote:
> ...ah, upon closer inspection, we don't use the ``interact()`` method 
> anyway.  We already copied and tweaked this method: one problem was 
> that it gives no way to run without printing at least one '\n' of 
> banner at the beginning.  Then a more important tweak was made when we 
> added multiline input with `pyrepl` by default.  So feel free to 
> ignore my request.

I think making the exit message configurable is a good idea even if PyPy 
doesn't do it, and it should be an easy few lines, so I'll do it even if 
you don't need it for PyPy.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue27573>
_______________________________________


More information about the Python-bugs-list mailing list