FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

gh-105145: Deprecate Py_GetPath() function by vstinner · Pull Request #105179 · python/cpython · GitHub

/ cpython Public

gh-105145: Deprecate Py_GetPath() function - #105179

Merged
vstinner merged 2 commits into
python:mainfrom
vstinner:deprecate_init_funcs
Jun 1, 2023
Merged

gh-105145: Deprecate Py_GetPath() function#105179
vstinner merged 2 commits into
python:mainfrom
vstinner:deprecate_init_funcs

Conversation

vstinner commented Jun 1, 2023
edited by github-actions Bot
Loading

Copy link
Copy Markdown
Member

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 force-pushed the deprecate_init_funcs branch from 5306a2b to a335c23 Compare June 1, 2023 10:11

vstinner commented Jun 1, 2023

Copy link
Copy Markdown
Member Author

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.

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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


Back | FazBrowse Home | New Git URL