-
-
Notifications
You must be signed in to change notification settings - Fork 33.1k
gh-128636: Fix crash in PyREPL when os.environ is overwritten with an invalid value for mac #138089
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
Conversation
Signed-off-by: yihong0618 <[email protected]>
the news is the same so maybe we can ignore it? |
Signed-off-by: yihong0618 <[email protected]>
only up to 3.13 new repr has this issue follow this patch title #129186 |
No, because we have already shipped a few releases since then, so we need a fresh one. |
learned that, thank you very much |
That's the backport. All PRs must first be done against main and we backport them when needed. We only use |
copy that, sorry for my wrong understand at first |
Signed-off-by: yihong0618 <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not entirely sure but caching THEME() seems to go against the comment in THEME().
Signed-off-by: yihong0618 <[email protected]>
addressed thank you and add tests |
Signed-off-by: yihong0618 <[email protected]>
Signed-off-by: yihong0618 <[email protected]>
A Python core developer has requested some changes be made to your pull request before we can consider merging it. If you could please address their requests along with any other requests in other reviews from core developers that would be appreciated. Once you have made the requested changes, please leave a comment on this pull request containing the phrase |
Signed-off-by: yihong0618 <[email protected]>
…hong0618/cpython into hy/close_issue_128636_for_mac
I'm letting Łukasz shepherd this as I'm not a REPL expert
Signed-off-by: yihong0618 <[email protected]>
fixed thank you for the help |
Signed-off-by: yihong0618 <[email protected]>
Signed-off-by: yihong0618 <[email protected]>
Thanks @yihong0618 for the PR, and @ambv for merging it 🌮🎉.. I'm working now to backport this PR to: 3.14. |
Thanks @yihong0618 for the PR, and @ambv for merging it 🌮🎉.. I'm working now to backport this PR to: 3.13. |
…ith an invalid value for macOS (pythonGH-138089) (cherry picked from commit 8ef7735) Co-authored-by: yihong <[email protected]> Signed-off-by: yihong0618 <[email protected]> Co-authored-by: Bénédikt Tran <[email protected]>
Sorry, @yihong0618 and @ambv, I could not cleanly backport this to
|
GH-138938 is a backport of this pull request to the 3.14 branch. |
…ith an invalid value for macOS (pythonGH-138089) Signed-off-by: yihong0618 <[email protected]> Co-authored-by: Bénédikt Tran <[email protected]> (cherry picked from commit 8ef7735)
…itten with an invalid value for macOS (pythonGH-138089) (cherry picked from commit 8ef7735) Co-authored-by: yihong <[email protected]> Signed-off-by: yihong0618 <[email protected]> Co-authored-by: Bénédikt Tran <[email protected]>
GH-138942 is a backport of this pull request to the 3.13 branch. |
…with an invalid value for macOS (GH-138089) (GH-138942) Signed-off-by: yihong0618 <[email protected]> Co-authored-by: Bénédikt Tran <[email protected]> (cherry picked from commit 8ef7735)
…with an invalid value for macOS (GH-138089) (#138938) Co-authored-by: yihong <[email protected]> Co-authored-by: Bénédikt Tran <[email protected]>
for mac if environ is valid and it will retrigger all of it
so I checked the code base in repr the os is from init
so make it in
__init__
is better and can avoidand that is not enough, we also need fix it the same way in
_can_colorize theme
cc @pablogsal
in my env it fixed the issue, and I wonder it maybe a litter faster
os.environ
#128636