Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

gh-125235: Keep_tkinter TCL paths pointing to base installation on Windows#125250

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
vstinner merged 1 commit intopython:mainfromy5c4l3:tkinter-tclpath
Oct 11, 2024

Conversation

@y5c4l3
Copy link
Contributor

@y5c4l3y5c4l3 commentedOct 10, 2024
edited by bedevere-appbot
Loading


PyObject*prefix=PySys_GetObject("prefix");// borrowed reference
/* gh-125235: Should not use "prefix" which might point to venv root. */
PyObject*prefix=PySys_GetObject("base_prefix");// borrowed reference
Copy link
Contributor

Choose a reason for hiding this comment

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

I think removing//bordered reference is more appropriate, because you have already explained it above.

Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

I removed my extra comment line, since it's neither a workaround nor a corner case.

Copy link
Member

Choose a reason for hiding this comment

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

So deprecatedPy_GetPath() should be replaced withPySys_GetObject("base_prefix"), instead ofPySys_GetObject("prefix")?

Copy link
ContributorAuthor

@y5c4l3y5c4l3Oct 11, 2024
edited
Loading

Choose a reason for hiding this comment

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

So deprecatedPy_GetPath() should be replaced withPySys_GetObject("base_prefix"), instead ofPySys_GetObject("prefix")?

Yeah, the equivalent ofPy_GetPath /Py_GetPrefix should besys.base_prefix, sincesys.prefix takes venv into consideration. I think it's necessary to clarify it in their deprecation notes:https://docs.python.org/3/c-api/init.html#c.Py_GetPrefix

vstinner and mathsvisualization reacted with thumbs up emoji
@vstinnervstinner added the needs backport to 3.13bugs and security fixes labelOct 11, 2024
Copy link
Member

@vstinnervstinner left a comment

Choose a reason for hiding this comment

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

LGTM

@vstinnervstinner merged commitb3aa1b5 intopython:mainOct 11, 2024
@miss-islington-app
Copy link

Thanks@y5c4l3 for the PR, and@vstinner for merging it 🌮🎉.. I'm working now to backport this PR to: 3.13.
🐍🍒⛏🤖 I'm not a witch! I'm not a witch!

miss-islington pushed a commit to miss-islington/cpython that referenced this pull requestOct 11, 2024
…ion on Windows (pythonGH-125250)(cherry picked from commitb3aa1b5)Co-authored-by: Y5 <124019959+y5c4l3@users.noreply.github.com>Signed-off-by: y5c4l3 <y5c4l3@proton.me>
@bedevere-app
Copy link

GH-125312 is a backport of this pull request to the3.13 branch.

@bedevere-appbedevere-appbot removed the needs backport to 3.13bugs and security fixes labelOct 11, 2024
@vstinner
Copy link
Member

Thank you for your bugfix@y5c4l3. I merged your PR.

@vstinner
Copy link
Member

@y5c4l3: Do you want to propose a fix for the Py_GetPrefix() deprecation doc?

vstinner pushed a commit that referenced this pull requestOct 11, 2024
…tion on Windows (GH-125250) (#125312)gh-125235: Keep `_tkinter` TCL paths pointing to base installation on Windows (GH-125250)(cherry picked from commitb3aa1b5)Signed-off-by: y5c4l3 <y5c4l3@proton.me>Co-authored-by: Y5 <124019959+y5c4l3@users.noreply.github.com>
@y5c4l3
Copy link
ContributorAuthor

@y5c4l3: Do you want to propose a fix for the Py_GetPrefix() deprecation doc?

I'd like to. I've left an issue#125313 and doc fix is WIP. 🚀

neutrinoceros reacted with rocket emoji

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@vstinnervstinnervstinner approved these changes

+1 more reviewer

@rruuaanngrruuaanngrruuaanng left review comments

Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

3 participants

@y5c4l3@vstinner@rruuaanng

[8]ページ先頭

©2009-2025 Movatter.jp