KEMBAR78
gh-134466: Don't run when termios is inaccessible by ambv · Pull Request #138911 · python/cpython · GitHub
Skip to content

Conversation

@ambv
Copy link
Contributor

@ambv ambv commented Sep 15, 2025

Without the ability to set required capabilities, the REPL cannot function properly (syntax highlighting and multiline editing can't work).

We refuse to work in this degraded state.

Without the ability to set required capabilities, the REPL cannot
function properly (syntax highlighting and multiline editing can't
work).

We refuse to work in this degraded state.
@ambv ambv added the topic-repl Related to the interactive shell label Sep 15, 2025
@cmaloney
Copy link
Contributor

This looks like it might also improve gh-135329 (adds ignoring EIO from tcsetattr)

@ambv
Copy link
Contributor Author

ambv commented Sep 17, 2025

Merging this will expose #139027, but that issue exists already and is a separate problem.

Copy link
Member

@lysnikolaou lysnikolaou left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Let's work on #139027 separately.

@ambv ambv merged commit 2fc7004 into python:main Sep 17, 2025
57 checks passed
@miss-islington-app
Copy link

Thanks @ambv for the PR 🌮🎉.. I'm working now to backport this PR to: 3.13, 3.14.
🐍🍒⛏🤖

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Sep 17, 2025
)

Without the ability to set required capabilities, the REPL cannot
function properly (syntax highlighting and multiline editing can't
work).

We refuse to work in this degraded state.
(cherry picked from commit 2fc7004)

Co-authored-by: Łukasz Langa <lukasz@langa.pl>
@miss-islington-app
Copy link

Sorry, @ambv, I could not cleanly backport this to 3.13 due to a conflict.
Please backport using cherry_picker on command line.

cherry_picker 2fc7004d5437e7bb0a1f5b962be441ef0ee7434b 3.13

@bedevere-app
Copy link

bedevere-app bot commented Sep 17, 2025

GH-139029 is a backport of this pull request to the 3.14 branch.

@bedevere-app bedevere-app bot removed the needs backport to 3.14 bugs and security fixes label Sep 17, 2025
ambv added a commit to ambv/cpython that referenced this pull request Sep 17, 2025
…nGH-138911)

Without the ability to set required capabilities, the REPL cannot
function properly (syntax highlighting and multiline editing can't
work).

We refuse to work in this degraded state.
(cherry picked from commit 2fc7004)

Co-authored-by: Łukasz Langa <lukasz@langa.pl>
@bedevere-app
Copy link

bedevere-app bot commented Sep 17, 2025

GH-139030 is a backport of this pull request to the 3.13 branch.

@bedevere-app bedevere-app bot removed the needs backport to 3.13 bugs and security fixes label Sep 17, 2025
ambv added a commit that referenced this pull request Sep 17, 2025
…H-139030)

Without the ability to set required capabilities, the REPL cannot
function properly (syntax highlighting and multiline editing can't
work).

We refuse to work in this degraded state.
(cherry picked from commit 2fc7004)
encukou pushed a commit that referenced this pull request Oct 7, 2025
…H-139029)

Without the ability to set required capabilities, the REPL cannot
function properly (syntax highlighting and multiline editing can't
work).
We refuse to work in this degraded state.

(cherry picked from commit 2fc7004)

Co-authored-by: Łukasz Langa <lukasz@langa.pl>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

topic-repl Related to the interactive shell

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants