diff options
author | Ken Jin <kenjin4096@gmail.com> | 2022-05-09 13:45:13 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-09 13:45:13 (GMT) |
commit | be3cdd66c95806c648b6000c2b9f0e8417473eb8 (patch) | |
tree | 34defe38b1988f9f2e0d40268d9cbccc7907f406 /Doc/whatsnew | |
parent | 11a608d2b1b9c10079a1fe2ebf815a638c640c79 (diff) | |
download | cpython-be3cdd66c95806c648b6000c2b9f0e8417473eb8.zip cpython-be3cdd66c95806c648b6000c2b9f0e8417473eb8.tar.gz cpython-be3cdd66c95806c648b6000c2b9f0e8417473eb8.tar.bz2 |
gh-91345: Talk about ``sys._getframe`` compatibility in 3.11 whatsnew (GH-92552)
Diffstat (limited to 'Doc/whatsnew')
-rw-r--r-- | Doc/whatsnew/3.11.rst | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/Doc/whatsnew/3.11.rst b/Doc/whatsnew/3.11.rst index ab760d1..fd7082e 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`.) |