Subject: bug#49822: 28.0.50; python-shell-send functions show no output

From: Andrea Corallo <[email-masked]>
Date: Mon, 02 Aug 2021 15:17:11 +0000

[email-masked] writes:

> M-x run-python
> type e.g.: 5+5
> then send using `C-c C-c`
>
> The comint shows no output. Same for ipython comint.
> This is due to the 'coding cookie' in the `python-shell-send-...`
> commands (more exactly in `python-shell-buffer-substring`).
>
> When using e.g. comint-simple-send, things work correctly.
> It would be great if sending the 'coding cookie' (and the addtional
> line
> sent for the case of a trace) could be made optional.
>
> Here is some package where @fernandomayer fixes it for ipython.
> (But it is equally problematic for default python)
>
> This bug has probably been mentioned somewhere but I could not quickly
> find any mention of it on in the bug archive or even on google.
> So at least it has been reported now.
>
>
>
> In GNU Emacs 28.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version
> 3.24.25, cairo version 1.16.0)
>  of 2021-02-18 built on daniel-fedora
> Repository revision: 185121da6978553d538d37d6d0e67dc52e13311f
> Repository branch: feature/native-comp

Hi,

just to mention that feature/native-comp does not exists anymore as a
branch, one should point to master as native-comp was merged into it.
185121da6 is a 6 months old commit.

Regards

  Andrea