[Python-checkins] bpo-46166: Fix compiler warnings in What's New in Python 3.11 (GH-31198)
vstinner
webhook-mailer at python.org
Mon Feb 7 11:46:32 EST 2022
https://github.com/python/cpython/commit/a89772c79183e3e62bf61b92077a04f6ebcc4a2b
commit: a89772c79183e3e62bf61b92077a04f6ebcc4a2b
branch: main
author: Victor Stinner <vstinner at python.org>
committer: vstinner <vstinner at python.org>
date: 2022-02-07T17:46:22+01:00
summary:
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.
files:
M Doc/whatsnew/3.11.rst
diff --git a/Doc/whatsnew/3.11.rst b/Doc/whatsnew/3.11.rst
index 7b5e7da8f77aa..c3c2c67deaf33 100644
--- a/Doc/whatsnew/3.11.rst
+++ b/Doc/whatsnew/3.11.rst
@@ -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:
More information about the Python-checkins
mailing list