|
From: | Andreas Röhler |
Subject: | bug#49822: 28.0.50; python-shell-send functions show no output |
Date: | Sun, 15 Aug 2021 08:41:45 +0200 |
User-agent: | Mozilla/5.0 (X11; Linux i686; rv:78.0) Gecko/20100101 Thunderbird/78.12.0 |
On 14.08.21 11:29, Augusto Stoffel wrote:
On Fri, 13 Aug 2021 at 18:44, Andreas Röhler <andreas.roehler@easy-emacs.de> wrote:Hmm, a buffer is not an interactive shell. Putting a print() around should do it.I'm not sure I get your point. Evaluating an expression should print the result, no? It's the P in REPL.
Python's interactive prompt offers a slightly different behavior than running code through a plain Python interpreter.
I understand the code in a buffer as something which is executed as a program. If you run a program by a python interpreter, if it outputs something, that depends.
[Prev in Thread] | Current Thread | [Next in Thread] |