Skip to content

Commit a89772c

Browse files
authored
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.
1 parent f20ca76 commit a89772c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Doc/whatsnew/3.11.rst

+4-4
Original file line numberDiff line numberDiff line change
@@ -816,13 +816,13 @@ Porting to Python 3.11
816816
:c:func:`Py_DECREF`.
817817
* ``f_back``: changed (see below), use :c:func:`PyFrame_GetBack`.
818818
* ``f_builtins``: removed,
819-
use ``PyObject_GetAttrString(frame, "f_builtins")``.
819+
use ``PyObject_GetAttrString((PyObject*)frame, "f_builtins")``.
820820
* ``f_globals``: removed,
821-
use ``PyObject_GetAttrString(frame, "f_globals")``.
821+
use ``PyObject_GetAttrString((PyObject*)frame, "f_globals")``.
822822
* ``f_locals``: removed,
823-
use ``PyObject_GetAttrString(frame, "f_locals")``.
823+
use ``PyObject_GetAttrString((PyObject*)frame, "f_locals")``.
824824
* ``f_lasti``: removed,
825-
use ``PyObject_GetAttrString(frame, "f_lasti")``.
825+
use ``PyObject_GetAttrString((PyObject*)frame, "f_lasti")``.
826826

827827
The following fields were removed entirely, as they were details
828828
of the old implementation:

0 commit comments

Comments
 (0)