Skip to content

Weird behaviour with tmux send-keys #135154

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
ManuGraiph opened this issue Jun 5, 2025 · 0 comments
Open

Weird behaviour with tmux send-keys #135154

ManuGraiph opened this issue Jun 5, 2025 · 0 comments
Labels
stdlib Python modules in the Lib dir topic-repl Related to the interactive shell type-bug An unexpected behavior, bug, or error

Comments

@ManuGraiph
Copy link

ManuGraiph commented Jun 5, 2025

Bug report

Bug description:

Hi,

I'm experiencing some weird behaviour only in python 3.13, up to 3.12, this bug never appeared. I'm gonna try to explain it in the best possible way..

I use tmux send-keys to send a couple lines to my python prompt, to run a script from within the python interpreter, clear vars, change the working directory, etc. Now, in python 3.13, after a couple times of sending text to the python prompt this way, some weird behaviour happens.

I'm gonna make a simple example, let's say i send the text (again, using tmux send-keys function) to my python (3.13) prompt:

a = 3\u000D

Which would be a var definition + Enter, if i open a pytho nprompt and do that, it works perfect, now, after a while of sending text this way, when i do it again, the line doesn't get executed, in the prompt "appears" the first char in the line that i sent (in this example, "a"), and it the prompt gets like "paused". If i press any key on it, the line goes through. and it works normally.

This only happens to me in 3.13, i'm not sure if it's a tmux or python issue, my guess is python.

Any idea what could this be, or has anyone experienced something similar?

Thanks in advance !

CPython versions tested on:

3.13

Operating systems tested on:

Linux

@ManuGraiph ManuGraiph added the type-bug An unexpected behavior, bug, or error label Jun 5, 2025
@vstinner vstinner added the topic-repl Related to the interactive shell label Jun 5, 2025
@picnixz picnixz added the stdlib Python modules in the Lib dir label Jun 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stdlib Python modules in the Lib dir topic-repl Related to the interactive shell type-bug An unexpected behavior, bug, or error
Projects
None yet
Development

No branches or pull requests

3 participants