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
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
warnings.filters is not documented
  • Loading branch information
vstinner committed Jun 1, 2023
commit 80f6d698619909ab2f804e3d5caf8b6aa9a3c11f
2 changes: 1 addition & 1 deletion Doc/c-api/sys.rst
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ accessible to C code. They all work with the current interpreter thread's
called prior to :c:func:`Py_Initialize`.

.. deprecated-removed:: 3.13 3.15
Clear :data:`sys.warnoptions` and :data:`warnings.filters` instead.
Clear :data:`sys.warnoptions` and :data:`!warnings.filters` instead.

.. c:function:: void PySys_WriteStdout(const char *format, ...)

Expand Down
2 changes: 1 addition & 1 deletion Doc/whatsnew/3.13.rst
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,7 @@ Deprecated
* Deprecate old Python initialization functions:

* :c:func:`PySys_ResetWarnOptions`:
clear :data:`sys.warnoptions` and :data:`warnings.filters` instead.
clear :data:`sys.warnoptions` and :data:`!warnings.filters` instead.
* :c:func:`Py_GetExecPrefix`: get :data:`sys.exec_prefix` instead.
* :c:func:`Py_GetPath`: get :data:`sys.path` instead.
* :c:func:`Py_GetPrefix`: get :data:`sys.prefix` instead.
Expand Down
0