Skip to content
Merged
Changes from 1 commit
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
Prev Previous commit
Add whatsnew section for debugger access to f_locals.
  • Loading branch information
markshannon committed Mar 25, 2022
commit 70a57177589f0485f5628bfdb1fc3d316cd471cd
6 changes: 6 additions & 0 deletions Doc/whatsnew/3.11.rst
Original file line number Diff line number Diff line change
Expand Up @@ -978,6 +978,12 @@ Porting to Python 3.11
computed lazily. The :c:func:`PyFrame_GetBack` function must be called
instead.

Debuggers that accessed the ``f_locals`` directly *must* call
`:c:func:`PyFrame_GetLocals` instead. They no longer need to call
`:c:func:`PyFrame_FastToLocalsWithError` or :c:func:`PyFrame_LocalsToFast`,
in fact they should not call those functions. The necessary updating of the
frame is now managed by the virtual machine.

Code defining ``PyFrame_GetCode()`` on Python 3.8 and older::

#if PY_VERSION_HEX < 0x030900B1
Expand Down