Thanks to visit codestin.com
Credit goes to github.com

Skip to content

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.

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