8000 gh-105145: Deprecate Py_GetPath() function by vstinner · Pull Request #105179 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

gh-105145: Deprecate Py_GetPath() function #105179

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

Merged
merged 2 commits into from
Jun 1, 2023

Conversation

vstinner
Copy link
Member
@vstinner vstinner commented Jun 1, 2023

Deprecate old Python initialization functions:

  • PySys_ResetWarnOptions()
  • Py_GetExecPrefix()
  • Py_GetPath()
  • Py_GetPrefix()
  • Py_GetProgramFullPath()
  • Py_GetProgramName()
  • Py_GetPythonHome()

_tkinter uses sys.executable instead of Py_GetProgramName().


📚 Documentation preview 📚: https://cpython-previews--105179.org.readthedocs.build/

Deprecate old Python initialization functions:

* PySys_ResetWarnOptions()
* Py_GetExecPrefix()
* Py_GetPath()
* Py_GetPrefix()
* Py_GetProgramFullPath()
* Py_GetProgramName()
* Py_GetPythonHome()

_tkinter uses sys.executable instead of Py_GetProgramName() and uses
sys.prefix instead of Py_GetPrefix().
@vstinner vstinner force-pushed the deprecate_init_funcs branch from 5306a2b to a335c23 Compare June 1, 2023 10:11
@vstinner
Copy link
Member Author
vstinner commented Jun 1, 2023

PR updated and rebased to also avoid Py_GetPrefix() in _tkinter.c and document replacements in What's New in Python 3.13, not only in the C API doc.

@vstinner vstinner enabled auto-merge (squash) June 1, 2023 12:05
@vstinner vstinner merged commit c67121a into python:main Jun 1, 2023
@vstinner vstinner deleted the deprecate_init_funcs branch June 1, 2023 13:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0