Skip to content
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

gh-124927: Fix conversion issue between coordinates and position in REPL #125001

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

ImFeH2
Copy link

@ImFeH2 ImFeH2 commented Oct 5, 2024

When encountering non printing characters, there will be 0 in self.screeninfo. Resulting in the setpos_from_xy function getting stuck in a dead loop when pressing the up/down keys, and pos2xy returns an incorrect value when the left/right keys.

Copy link

cpython-cla-bot bot commented Oct 5, 2024

All commit authors signed the Contributor License Agreement.
CLA signed

@bedevere-app
Copy link

bedevere-app bot commented Oct 5, 2024

Most changes to Python require a NEWS entry. Add one using the blurb_it web app or the blurb command-line tool.

If this change has little impact on Python users, wait for a maintainer to apply the skip news label instead.

@skirpichev
Copy link
Member

Test failures are related to the change.

@ImFeH2 ImFeH2 closed this Oct 5, 2024
@ImFeH2 ImFeH2 reopened this Oct 5, 2024
@ImFeH2 ImFeH2 force-pushed the non-printing-char branch from 1819ec0 to dc3906a Compare October 5, 2024 13:23
@bedevere-app
Copy link

bedevere-app bot commented Oct 5, 2024

Most changes to Python require a NEWS entry. Add one using the blurb_it web app or the blurb command-line tool.

If this change has little impact on Python users, wait for a maintainer to apply the skip news label instead.

@ImFeH2
Copy link
Author

ImFeH2 commented Oct 5, 2024

All tests have passed, what should I do next?

@picnixz
Copy link
Member

picnixz commented Oct 5, 2024

All tests have passed, what should I do next?

Actually the tests were not executed (someone needed to approve the workflow which I did). So we'll just wait until they are indeed complete.

@ImFeH2
Copy link
Author

ImFeH2 commented Dec 19, 2024

Hi @pablogsal, would you mind taking a look at this small PR when you have a chance? Thanks in advance!

@ImFeH2 ImFeH2 closed this Jan 5, 2025
@ImFeH2 ImFeH2 deleted the non-printing-char branch January 5, 2025 06:36
@ImFeH2 ImFeH2 restored the non-printing-char branch January 5, 2025 06:38
@ImFeH2 ImFeH2 reopened this Jan 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants