This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: Discrepancy between Python and Guile wrt exiting the interpreter
- From: Simon Marchi <simark at simark dot ca>
- To: Pedro Alves <palves at redhat dot com>, Eli Zaretskii <eliz at gnu dot org>, gdb-patches at sourceware dot org
- Date: Thu, 23 Jan 2020 12:21:20 -0500
- Subject: Re: Discrepancy between Python and Guile wrt exiting the interpreter
- References: <83a76l10r6.fsf@gnu.org> <9684975c-324f-b26b-de87-6d37c0d8d08a@redhat.com>
On 2020-01-23 12:10 p.m., Pedro Alves wrote:
> Note that these commands are not direct equivalents. The guile equivalent
> to "pi" which is short for "python" would be "guile", or "gu", and with
> that command you get the same behavior as "pi", in the sense that ",q"
> doesn't bail you out, you have to type some command and finish with
> either Ctrl-D or Ctrl-C to abort.
"pi" is not a shorthand for "python", it's a shorthand for "python-interactive",
which spawns a Python interpreter prompt/repl. So I think that and "guile-repl"
are quite similar. It's just that the Python repl doesn't provide a convenient
way (other than ctrl-D) so say "exit the repl".
Simon