summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2024-06-01 04:23:04 (GMT)
committerGitHub <noreply@github.com>2024-06-01 04:23:04 (GMT)
commit0a266f7e74ce1ff4ad6e88f05473cc6a22ab7e20 (patch)
tree679ce41bab03bcf4891f8c46fa141407a4bd7db0 /Python
parenta5272e63efc003a30a2b603b512d367282a24209 (diff)
downloadcpython-0a266f7e74ce1ff4ad6e88f05473cc6a22ab7e20.zip
cpython-0a266f7e74ce1ff4ad6e88f05473cc6a22ab7e20.tar.gz
cpython-0a266f7e74ce1ff4ad6e88f05473cc6a22ab7e20.tar.bz2
[3.13] gh-74929: PEP 667 C API documentation (gh-119892)
* Add docs for new APIs * Add soft-deprecation notices * Add What's New porting entries * Update comments referencing `PyFrame_LocalsToFast()` to mention the proxy instead * Other related cleanups found when looking for refs to the deprecated APIs (cherry picked from commit 3859e09e3d92d004978dd838f0511364e7edfb94) Co-authored-by: Alyssa Coghlan <ncoghlan@gmail.com>
Diffstat (limited to 'Python')
-rw-r--r--Python/bytecodes.c2
-rw-r--r--Python/executor_cases.c.h2
-rw-r--r--Python/generated_cases.c.h2
-rw-r--r--Python/sysmodule.c1
4 files changed, 3 insertions, 4 deletions
diff --git a/Python/bytecodes.c b/Python/bytecodes.c
index 434eb80..8a6222c 100644
--- a/Python/bytecodes.c
+++ b/Python/bytecodes.c
@@ -1543,7 +1543,7 @@ dummy_func(
inst(MAKE_CELL, (--)) {
// "initial" is probably NULL but not if it's an arg (or set
- // via PyFrame_LocalsToFast() before MAKE_CELL has run).
+ // via the f_locals proxy before MAKE_CELL has run).
PyObject *initial = GETLOCAL(oparg);
PyObject *cell = PyCell_New(initial);
if (cell == NULL) {
diff --git a/Python/executor_cases.c.h b/Python/executor_cases.c.h
index 347a1e6..4699c8e 100644
--- a/Python/executor_cases.c.h
+++ b/Python/executor_cases.c.h
@@ -1558,7 +1558,7 @@
case _MAKE_CELL: {
oparg = CURRENT_OPARG();
// "initial" is probably NULL but not if it's an arg (or set
- // via PyFrame_LocalsToFast() before MAKE_CELL has run).
+ // via the f_locals proxy before MAKE_CELL has run).
PyObject *initial = GETLOCAL(oparg);
PyObject *cell = PyCell_New(initial);
if (cell == NULL) {
diff --git a/Python/generated_cases.c.h b/Python/generated_cases.c.h
index 96161c5..32d5b8b 100644
--- a/Python/generated_cases.c.h
+++ b/Python/generated_cases.c.h
@@ -4747,7 +4747,7 @@
next_instr += 1;
INSTRUCTION_STATS(MAKE_CELL);
// "initial" is probably NULL but not if it's an arg (or set
- // via PyFrame_LocalsToFast() before MAKE_CELL has run).
+ // via the f_locals proxy before MAKE_CELL has run).
PyObject *initial = GETLOCAL(oparg);
PyObject *cell = PyCell_New(initial);
if (cell == NULL) {
diff --git a/Python/sysmodule.c b/Python/sysmodule.c
index 4da13e4..00aa955 100644
--- a/Python/sysmodule.c
+++ b/Python/sysmodule.c
@@ -35,7 +35,6 @@ Data members:
#include "pycore_sysmodule.h" // export _PySys_GetSizeOf()
#include "pycore_tuple.h" // _PyTuple_FromArray()
-#include "frameobject.h" // PyFrame_FastToLocalsWithError()
#include "pydtrace.h" // PyDTrace_AUDIT()
#include "osdefs.h" // DELIM
#include "stdlib_module_names.h" // _Py_stdlib_module_names