Skip to content

Commit 36c1cd0

Browse files
committed
revise
1 parent 2e58666 commit 36c1cd0

File tree

4 files changed

+8
-3
lines changed

4 files changed

+8
-3
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
Pending removal in Python 3.16
2+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
3+
4+
* The :c:func:`PyEval_GetLocals`:
5+
It will be deprecated as for `PEP-667 <https://peps.python.org/pep-0667/>`_.

Doc/deprecations/index.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,6 @@ C API deprecations
1212

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

15+
.. include:: c-api-pending-removal-in-3.16.rst
16+
1517
.. include:: c-api-pending-removal-in-future.rst

Misc/NEWS.d/next/C_API/2024-12-30-15-45-37.gh-issue-125170.Jdo8RC.rst

Lines changed: 0 additions & 1 deletion
This file was deleted.

Python/ceval.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2601,8 +2601,7 @@ PyEval_GetLocals(void)
26012601
{
26022602
if (PyErr_WarnEx(PyExc_DeprecationWarning,
26032603
"PyEval_GetLocals() is deprecated in Python 3.14 "
2604-
"and will be removed in 3.16.", 1))
2605-
{
2604+
"and will be removed in 3.16.", 1)) {
26062605
return NULL;
26072606
}
26082607
// We need to return a borrowed reference here, so some tricks are needed

0 commit comments

Comments
 (0)