mirror of
https://github.com/python/cpython.git
synced 2025-08-27 20:25:18 +00:00
[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 3859e09e3d
)
Co-authored-by: Alyssa Coghlan <ncoghlan@gmail.com>
This commit is contained in:
parent
a5272e63ef
commit
0a266f7e74
9 changed files with 104 additions and 11 deletions
2
Python/executor_cases.c.h
generated
2
Python/executor_cases.c.h
generated
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue