]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-91345: Talk about ``sys._getframe`` compatibility in 3.11 whatsnew (GH-92552)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 9 May 2022 14:18:37 +0000 (07:18 -0700)
committerGitHub <noreply@github.com>
Mon, 9 May 2022 14:18:37 +0000 (07:18 -0700)
(cherry picked from commit be3cdd66c95806c648b6000c2b9f0e8417473eb8)

Co-authored-by: Ken Jin <kenjin4096@gmail.com>
Doc/whatsnew/3.11.rst

index ab760d166030bdd718df5ab851a740b38e3add1e..fd7082e9fd74d22e38f7f7d8b272ff93c561492c 100644 (file)
@@ -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`.)