]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-46166: Fix compiler warnings in What's New in Python 3.11 (GH-31198)
authorVictor Stinner <vstinner@python.org>
Mon, 7 Feb 2022 16:46:22 +0000 (17:46 +0100)
committerGitHub <noreply@github.com>
Mon, 7 Feb 2022 16:46:22 +0000 (17:46 +0100)
Fix compiler warnings on PyObject_GetAttrString() calls in the What's
New in Python 3.11 doc of PyFrameObject changes.

Doc/whatsnew/3.11.rst

index 7b5e7da8f77aa50481ab6ac54a31781193a167e3..c3c2c67deaf333a917085144261198511b253295 100644 (file)
@@ -816,13 +816,13 @@ Porting to Python 3.11
     :c:func:`Py_DECREF`.
   * ``f_back``: changed (see below), use :c:func:`PyFrame_GetBack`.
   * ``f_builtins``: removed,
-    use ``PyObject_GetAttrString(frame, "f_builtins")``.
+    use ``PyObject_GetAttrString((PyObject*)frame, "f_builtins")``.
   * ``f_globals``: removed,
-    use ``PyObject_GetAttrString(frame, "f_globals")``.
+    use ``PyObject_GetAttrString((PyObject*)frame, "f_globals")``.
   * ``f_locals``: removed,
-    use ``PyObject_GetAttrString(frame, "f_locals")``.
+    use ``PyObject_GetAttrString((PyObject*)frame, "f_locals")``.
   * ``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
   of the old implementation: