[Python-checkins] gh-91345: Talk about ``sys._getframe`` compatibility in 3.11 whatsnew (GH-92552)

miss-islington webhook-mailer at python.org
Mon May 9 10:18:51 EDT 2022


https://github.com/python/cpython/commit/1e4cdcf97f1ad759595dab7caa203b963216ac1b
commit: 1e4cdcf97f1ad759595dab7caa203b963216ac1b
branch: 3.11
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: miss-islington <31488909+miss-islington at users.noreply.github.com>
date: 2022-05-09T07:18:37-07:00
summary:

gh-91345: Talk about ``sys._getframe`` compatibility in 3.11 whatsnew (GH-92552)

(cherry picked from commit be3cdd66c95806c648b6000c2b9f0e8417473eb8)

Co-authored-by: Ken Jin <kenjin4096 at gmail.com>

files:
M Doc/whatsnew/3.11.rst

diff --git a/Doc/whatsnew/3.11.rst b/Doc/whatsnew/3.11.rst
index ab760d166030b..fd7082e9fd74d 100644
--- a/Doc/whatsnew/3.11.rst
+++ b/Doc/whatsnew/3.11.rst
@@ -891,10 +891,11 @@ holds execution information. The following are new frame optimizations:
 - Streamlined the internal frame struct to contain only essential information.
   Frames previously held extra debugging and memory management information.
 
-Old-style frame objects are now created only when required by debuggers. For
-most user code, no frame objects are created at all. As a result, nearly all
-Python functions calls have sped up significantly. We measured a 3-7% speedup
-in pyperformance.
+Old-style frame objects are now created only when requested by debuggers or
+by Python introspection functions such as ``sys._getframe`` or
+``inspect.currentframe``. For most user code, no frame objects are
+created at all. As a result, nearly all Python functions calls have sped
+up significantly. We measured a 3-7% speedup in pyperformance.
 
 (Contributed by Mark Shannon in :issue:`44590`.)
 



More information about the Python-checkins mailing list