This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Discrepancy between Python and Guile wrt exiting the interpreter


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]