Skip to content

Commit

Permalink
revise
Browse files Browse the repository at this point in the history
  • Loading branch information
xuantengh committed Dec 31, 2024
1 parent 1b4f45d commit 04e97fb
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 3 deletions.
5 changes: 5 additions & 0 deletions Doc/deprecations/c-api-pending-removal-in-3.16.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Pending removal in Python 3.16
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

* The :c:func:`PyEval_GetLocals`:
It will be deprecated as for `PEP-667 <https://peps.python.org/pep-0667/>`_.
2 changes: 2 additions & 0 deletions Doc/deprecations/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,6 @@ C API deprecations

.. include:: c-api-pending-removal-in-3.15.rst

.. include:: c-api-pending-removal-in-3.16.rst

.. include:: c-api-pending-removal-in-future.rst

This file was deleted.

3 changes: 1 addition & 2 deletions Python/ceval.c
Original file line number Diff line number Diff line change
Expand Up @@ -2601,8 +2601,7 @@ PyEval_GetLocals(void)
{
if (PyErr_WarnEx(PyExc_DeprecationWarning,
"PyEval_GetLocals() is deprecated in Python 3.14 "
"and will be removed in 3.16.", 1))
{
"and will be removed in 3.16.", 1)) {
return NULL;
}
// We need to return a borrowed reference here, so some tricks are needed
Expand Down

0 comments on commit 04e97fb

Please sign in to comment.