[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] python.el: Returning inferior Python output without inhibiti
From: |
Eli Zaretskii |
Subject: |
Re: [PATCH] python.el: Returning inferior Python output without inhibiting it |
Date: |
Sun, 01 Oct 2023 20:00:09 +0300 |
> From: Jack Kamm <jackkamm@gmail.com>
> Date: Sun, 01 Oct 2023 09:05:23 -0700
>
> It would be very useful to ob-python, if python.el had a function that
> evaluated Python code and returned output, without inhibiting the
> output.
>
> So, this patch modifies `python-shell-send-string-no-output', adding
> an argument to show the output. I also rename it to
> `python-shell-send-string-return-output' since that is a more accurate
> name for the new behavior.
I think instead of renaming (which then requires us to add an obsolete
alias), it would be better to leave python-shell-send-string-no-output
available, but just make it a thin wrapper around
python-shell-send-string-return-output (which I would suggest to name
python-shell-send-string-maybe-output instead). This way, we don't
annoy Lisp programs that use python-shell-send-string-no-output with
obsolescence warnings.
Thanks.