--- Begin Message ---
Subject: |
Python Inferior Mode Can’t Recognize My Prompt |
Date: |
Sat, 8 Jun 2024 16:29:40 +0000 |
I set the ‘PYTHONSTARTUP’ environment variable to a file
whose content is
```python
import sys
sys.ps1, sys.ps2 = "\033[32m►\033[0m", "\033[32m▻\033[0m"
```
It works well if I start Python3 in my terminal (Windows
Terminal, windows11’s built-in app).
However, if I use it in Emacs:
1. open a Python file in Emacs
2. type ‘C-c C-p’ (run-python)
3. in the buffer visiting the Python file, type ‘C-c C-c’
(python-shell-send-buffer)
Python will throw an error:
```
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
NameError: name '__PYTHON_EL_eval' is not defined
```
--- End Message ---
--- Begin Message ---
Subject: |
Re: bug#71440: Python Inferior Mode Can’t Recognize My Prompt |
Date: |
Sat, 15 Jun 2024 13:45:20 +0300 |
> Date: Thu, 13 Jun 2024 23:24:15 +0900
> From: kobarity <kobarity@gmail.com>
> Cc: "71440@debbugs.gnu.org" <71440@debbugs.gnu.org>
>
> shynur . wrote:
> >
> > kobarity:
> > > Could you please try the improved patch I've attached,
> > > which I believe will eliminate this warning as well?
> >
> > Thanks. No error or warning now.
>
> Thanks for confirming. Unless I get feedback from others, this is the
> final version from me.
Now installed on master, and closing the bug.
Thanks.
--- End Message ---