Skip to content
Prev Previous commit
Next Next commit
Explain _PyFrame_IsIncomplete()
  • Loading branch information
markshannon committed Jun 28, 2022
commit 6d071657e154f627126b30b64696cd0692c15467
5 changes: 4 additions & 1 deletion Include/internal/pycore_frame.h
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,10 @@ PyGenObject *_PyFrame_GetGenerator(_PyInterpreterFrame *frame)
return (PyGenObject *)(((char *)frame) - offset_in_gen);
}


/* Determine whether a frame is incomplete.
* A frame is incomplete until the first RESUME instruction
* as it may be part way through creating cell objects or a
* generator or coroutine. */
static inline bool
_PyFrame_IsIncomplete(_PyInterpreterFrame *frame)
Comment thread
markshannon marked this conversation as resolved.
Outdated
{
Expand Down