mirror of https://github.com/python/cpython
bpo-46166: Fix compiler warnings in What's New in Python 3.11 (GH-31198)
Fix compiler warnings on PyObject_GetAttrString() calls in the What's New in Python 3.11 doc of PyFrameObject changes.
This commit is contained in:
parent
f20ca766fe
commit
a89772c791
|
@ -816,13 +816,13 @@ Porting to Python 3.11
|
||||||
:c:func:`Py_DECREF`.
|
:c:func:`Py_DECREF`.
|
||||||
* ``f_back``: changed (see below), use :c:func:`PyFrame_GetBack`.
|
* ``f_back``: changed (see below), use :c:func:`PyFrame_GetBack`.
|
||||||
* ``f_builtins``: removed,
|
* ``f_builtins``: removed,
|
||||||
use ``PyObject_GetAttrString(frame, "f_builtins")``.
|
use ``PyObject_GetAttrString((PyObject*)frame, "f_builtins")``.
|
||||||
* ``f_globals``: removed,
|
* ``f_globals``: removed,
|
||||||
use ``PyObject_GetAttrString(frame, "f_globals")``.
|
use ``PyObject_GetAttrString((PyObject*)frame, "f_globals")``.
|
||||||
* ``f_locals``: removed,
|
* ``f_locals``: removed,
|
||||||
use ``PyObject_GetAttrString(frame, "f_locals")``.
|
use ``PyObject_GetAttrString((PyObject*)frame, "f_locals")``.
|
||||||
* ``f_lasti``: removed,
|
* ``f_lasti``: removed,
|
||||||
use ``PyObject_GetAttrString(frame, "f_lasti")``.
|
use ``PyObject_GetAttrString((PyObject*)frame, "f_lasti")``.
|
||||||
|
|
||||||
The following fields were removed entirely, as they were details
|
The following fields were removed entirely, as they were details
|
||||||
of the old implementation:
|
of the old implementation:
|
||||||
|
|
Loading…
Reference in New Issue