8000 gh-91345: Talk about ``sys._getframe`` compatibility in 3.11 whatsnew by Fidget-Spinner · Pull Request #92552 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

gh-91345: Talk about sys._getframe compatibility in 3.11 whatsnew #92552

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
May 9, 2022
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions Doc/whatsnew/3.11.rst
Original file line number Diff line number Diff line change
Expand Up @@ -896,6 +896,12 @@ 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.

.. note::
Python frame introspection functions like ``inspect.currentframe``
or ``sys._getframe`` still work. However, they will not enjoy the
performance improvements. This change is backwards compatible.


(Contributed by Mark Shannon in :issue:`44590`.)

.. _inline-calls:
Expand Down
0