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
Update InternalDocs/interpreter.md
Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
  • Loading branch information
efimov-mikhail and iritkatriel authored Nov 21, 2025
commit 7c78bb15c4d01da126bc3884b88d648a8dbdfff3
4 changes: 2 additions & 2 deletions InternalDocs/interpreter.md
Original file line number Diff line number Diff line change
Expand Up @@ -229,8 +229,8 @@ Since 3.11, frames are no longer fully-fledged objects. Instead, a leaner intern
`_PyInterpreterFrame` structure is used. Most frames are allocated contiguously in a
per-thread stack (see `_PyThreadState_PushFrame` in [Python/pystate.c](../Python/pystate.c)),
which improves memory locality and reduces overhead.
If current `datastack_chunk` has enough space (`_PyThreadState_HasStackSpace`)
then lightweight `_PyFrame_PushUnchecked` can be used.
If the current `datastack_chunk` has enough space (`_PyThreadState_HasStackSpace`)
then the lightweight `_PyFrame_PushUnchecked` can be used instead of `_PyThreadState_PushFrame`.

Sometimes an actual `PyFrameObject` is needed, such as when Python code calls
`sys._getframe()` or an extension module calls
Expand Down
Loading