all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: "shynur ." <one.last.kiss@outlook.com>
Cc: 71440@debbugs.gnu.org
Subject: bug#71440: Python Inferior Mode Can’t Recognize My Prompt
Date: Sat, 08 Jun 2024 19:53:36 +0300	[thread overview]
Message-ID: <86sexnbckv.fsf@gnu.org> (raw)
In-Reply-To: <PH0PR11MB74702DB86FA01ECC0537C1B4D7C42@PH0PR11MB7470.namprd11.prod.outlook.com> (one.last.kiss@outlook.com)

> From: "shynur ." <one.last.kiss@outlook.com>
> Date: Sat, 8 Jun 2024 16:29:40 +0000
> msip_labels: 
> 
> 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

I'm guessing that this is because that #x25ba and #x25bb Unicode
characters don't survive your system codepage (which Emacs uses to
communicate with inferior Python).  What are the values of
w32-ansi-code-page and w32-multibyte-code-page on your system?





  reply	other threads:[~2024-06-08 16:53 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-06-08 16:29 bug#71440: Python Inferior Mode Can’t Recognize My Prompt shynur .
2024-06-08 16:53 ` Eli Zaretskii [this message]
2024-06-08 17:06   ` shynur .
2024-06-08 17:29     ` bug#71440: " Eli Zaretskii
2024-06-08 17:46       ` shynur .
2024-06-08 18:41         ` bug#71440: " Eli Zaretskii
2024-06-08 19:50           ` shynur .
2024-06-09  4:31             ` bug#71440: " Eli Zaretskii
2024-06-09 10:11               ` shynur .
2024-06-09 10:25                 ` bug#71440: " Eli Zaretskii
2024-06-09 10:49                   ` shynur .
2024-06-09 11:02                     ` bug#71440: " Eli Zaretskii
2024-06-09 15:26                       ` kobarity
2024-06-09 15:40                         ` bug#71440: Python Inferior Mode Canʼt " shynur .
2024-06-11 16:24                         ` bug#71440: Python Inferior Mode Can’t " kobarity
2024-06-12  8:12                           ` Eli Zaretskii
2024-06-12 13:09                             ` kobarity
2024-06-12 16:57                           ` shynur .
2024-06-13 14:24                             ` kobarity
2024-06-15 10:45                               ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=86sexnbckv.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=71440@debbugs.gnu.org \
    --cc=one.last.kiss@outlook.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.