Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #286794

Odd behaviour at Python command prompt under Wine

From Roger Marsh <roger.marsh@btinternet.com>
Newsgroups linux.debian.user
Subject Odd behaviour at Python command prompt under Wine
Date 2026-05-21 22:20 +0200
Message-ID <MXi26-6REv-7@gated-at.bofh.it> (permalink)
Organization linux.* mail to news gateway

Show all headers | View raw


Hi,

The script shows, after preamble for Debian and Wine versions, what happens on typing 'wine python' at the '$' command prompt followed by 'import subprocess' at the '>>>' Python command prompt and then 'exit()' at the next '>>>'.

Each statement at a '>>>' is echoed several times while incomplete followed by a final echo when the command is completed by pressing the 'Enter' key.  The command seems to be processed correctly apart from the highly confusing additional echos.

The odd behaviour does not occur with the native Python invoked by typing 'python3' at the '$' command prompt.

Ideas on fixing this would be helpful.

Thanks,

Roger


Script started on 2026-05-21 19:56:52+01:00 [TERM="xterm-256color" TTY="/dev/pts/0" COLUMNS="80" LINES="24"]
[?2004h]0;roger@debian: ~roger@debian:~$ uname -a
[?2004l
Linux debian 6.12.74+deb13+1-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.12.74-2 (2026-03-08) x86_64 GNU/Linux
[?2004h]0;roger@debian: ~roger@debian:~$ wine --version
[?2004l
wine-10.0 (Debian 10.0~repack-6)
[?2004h]0;roger@debian: ~roger@debian:~$ wine python
[?2004l
[?25lPython 3.14.2 (tags/v3.14.2:df79316, Dec  5 2025, 17:18:21) [MSC v.1944 64 bit (
AMD64)] on win32
[?25h[?25lType "help", "copyright", "credits" or "license" for more information.
[?25h[?25l[?25l[?25h[?25l[?25h
[?25l[?25l[?25h[?25l[?25l[?25h[?25l>>> [?25h[?25l[?25h[?25l[?25h[?25h[?25l[?25h[?25l[?25l[?25h[?25l[?25l[?25h[?25l[?25h[?25l>>> i[?25h[?25l[?25h[?25l
[?25l[?25l>>> [?25h[?25l[?25l>>> i[?
25h[?25h[?25l[?25h[?25l[?25l[?25h[?25l[?25l[?25h[?25l[?25h[?25l>>> im[?25h[?25l[?25h[?25l[?25h[?25h[?25l[?25h[?25l[?25l[?25h[?25l[?25l[?25h[?25l[?25h[?25l
25h[?25l[?25l>>> im[?25h[?25l[?25l>>>
 imp[?25h[?25l[?25h[?25l[?25h[?25h[?25l[?25h[?25l[?25l[?25h[?25l[?25l[?25h[?25l[?25h[?25l>>> impo[?25h[?25l[?25h[?25l[?25h[?25h[?25l[?25h[?25l[?25l[?25h[?25l
 imp[?25h[?25l[?25l>>> impo[?25h[?25l[?
25l[?25h[?25l[?25h[?25l>>> impor[?25h[?25l[?25h[?25l[?25h[?25h[?25l[?25h[?25l[?25l[?25h[?25l[?25l[?25h[?25l[?25h[?25l
25l>>> impor[?25h[?25l[?25l>>> i
mport[?25h[?25l[?25h[?25l[?25h[?25h[?25l[?25h[?25l[?25l[?25h[?25l[?25l[?25h[?25l[?25h[?25l>>> import[?25h[?25l
[?25h[?25l
[?25h[?25h[?25l[?25h[?25l[?25l[?25h[?25l[?25l[?25h[?25l[?25h[?25l>>> import s[?25h[?25l[?25h[?25l[?25h[?25h[?25l[?25h[?25l
[?25h[?25l[?25l>>> import s[?25h[
?25l[?25h[?25l[?25l[?25h[?25l[?25h[?25l>>> import su[?25h[?25l[?25h[?25l[?25h[?25h[?25l[?25h[?25l[?25l[?25h[?25l[?25l[?25h[?25l
?25l[?25l>>> import su[?25h[?25l[?25l[
13D[?25h[?25l>>> import sub[?25h[?25l[?25h[?25l[?25h[?25h[?25l[?25h[?25l[?25l[?25h[?25l[?25l[?25h[?25l[?25h[?25l
13D>>> import sub[?25h[?25l[?25l>
>> import subp[?25h[?25l[?25h[?25l[?25h[?25h[?25l[?25h[?25l[?25l[?25h[?25l[?25l[?25h[?25l[?25h[?25l
>> import subp[?25h[?25l[?25l>>> [1
;34mimport subpr[?25h[?25l[?25h[?25l[?25h[?25h[?25l[?25h[?25l[?25l[?25h[?25l[?25l[?25h[?25l[?25h[?25l
;34mimport subpr[?25h[?25l[?25l>>> impor
t subpro[?25h[?25l[?25h[?25l[?25h[?25h[?25l[?25h[?25l[?25l[?25h[?25l[?25l[?25h[?25l[?25h[?25l
t subpro[?25h[?25l[?25l>>> import su
bproc[?25h[?25l[?25h[?25l[?25h[?25h[?25l[?25h[?25l[?25l[?25h[?25l[?25l[?25h[?25l[?25h[?25l>>> import subproce[?25h[?25l
bproc[?25h[?25l[?25l>>> import subproce
[19D[?25h[?25l[?25h[?25h[?25l[?25h[?25l[?25l[?25h[?25l[?25l[?25h[?25l[?25h[?25l>>> import subproces[?25h[?25l[?25h[?25l
[19D[?25h[?25l[?25l>>> import subproces
[?25h[?25h[?25l[?25h[?25l[?25l[?25h[?25l[?25l[?25h[?25l[?25h[?25l>>> import subprocess[?25h[?25l[?25h[?25l
[?25h[?25l[?25l>>> import subprocess[?25
h[?25h[?25l[?25h[?25l[?25l[?25h[?25l[?25h[?25h[?25l[?25h
[?25l[?25l[?25h[?25l[?25h
[?25l[?25l[?25h[?25l[?25l[?25h[?25l>>> [?25h[?25l[?25h[?25l[?25h[?25h[?25l[?25h[?25l[?25l[?25h[?25l[?25l[?25h[?25l[?25h[?25l>>> e[?25h[?25l[?25h[?25l
[?25l[?25l>>> [?25h[?25l[?25l>>> e[?
25h[?25h[?25l[?25h[?25l[?25l[?25h[?25l[?25l[?25h[?25l[?25h[?25l>>> ex[?25h[?25l[?25h[?25l[?25h[?25h[?25l[?25h[?25l[?25l[?25h[?25l[?25l[?25h[?25l[?25h[?25l
25h[?25l[?25l>>> ex[?25h[?25l[?25l>>>
 exi[?25h[?25l[?25h[?25l[?25h[?25h[?25l[?25h[?25l[?25l[?25h[?25l[?25l[?25h[?25l[?25h[?25l>>> exit[?25h[?25l[?25h[?25l[?25h[?25h[?25l
[?25h[?25l
[?25l[?25h[?25l[?25l[?25h[?25l[?25h[?25l>>> exit([?25h[?25l[?25h[?25l[?25h[?25h[?25l[?25h[?25l[?25l[?25h[?25l[?25l[?25h[?25l
[9D[?25h[?25l>>> exit()[?25h[?25l[?25h[?25l[?25h[?25h[?25l[?25h[?25l[?25l[?25h[?25l[?25h[?25h[?25l[1
0D[?25h
[?2004h]0;roger@debian: ~roger@debian:~$ exit
[?2004l
exit

Script done on 2026-05-21 19:58:33+01:00 [COMMAND_EXIT_CODE="0"]

Back to linux.debian.user | Previous | NextNext in thread | Find similar


Thread

Odd behaviour at Python command prompt under Wine Roger Marsh <roger.marsh@btinternet.com> - 2026-05-21 22:20 +0200
  Re: Odd behaviour at Python command prompt under Wine nwe <nwe@gitcoding.net> - 2026-05-22 04:30 +0200
    Re: Odd behaviour at Python command prompt under Wine Dan Ritter <dsr@randomstring.org> - 2026-05-22 12:40 +0200
      Re: Odd behaviour at Python command prompt under Wine Darac Marjal <mailinglist@darac.org.uk> - 2026-05-22 13:30 +0200
        Re: Odd behaviour at Python command prompt under Wine Greg Wooledge <greg@wooledge.org> - 2026-05-22 16:20 +0200
          Re: Odd behaviour at Python command prompt under Wine Roger Marsh <r.m@rmswch.plus.com> - 2026-05-23 16:00 +0200
            Re: Odd behaviour at Python command prompt under Wine Roger Marsh <r.m@rmswch.plus.com> - 2026-05-23 16:50 +0200
            Re: Odd behaviour at Python command prompt under Wine David Wright <deblis@lionunicorn.co.uk> - 2026-05-24 05:20 +0200
              Re: Odd behaviour at Python command prompt under Wine Roger Marsh <r.m@rmswch.plus.com> - 2026-05-28 00:00 +0200

csiph-web