Skip to content

Commit 7c78bb1

Browse files
Update InternalDocs/interpreter.md
Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
1 parent bbe6b3d commit 7c78bb1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

InternalDocs/interpreter.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -229,8 +229,8 @@ Since 3.11, frames are no longer fully-fledged objects. Instead, a leaner intern
229229
`_PyInterpreterFrame` structure is used. Most frames are allocated contiguously in a
230230
per-thread stack (see `_PyThreadState_PushFrame` in [Python/pystate.c](../Python/pystate.c)),
231231
which improves memory locality and reduces overhead.
232-
If current `datastack_chunk` has enough space (`_PyThreadState_HasStackSpace`)
233-
then lightweight `_PyFrame_PushUnchecked` can be used.
232+
If the current `datastack_chunk` has enough space (`_PyThreadState_HasStackSpace`)
233+
then the lightweight `_PyFrame_PushUnchecked` can be used instead of `_PyThreadState_PushFrame`.
234234

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

0 commit comments

Comments
 (0)