We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
_PyGenObject_HEAD
InternalDocs/generators.md
1 parenta1e2e6c commit2cc99b3Copy full SHA for 2cc99b3
InternalDocs/generators.md
@@ -28,9 +28,9 @@ interpreter state.
28
29
The`frame` of a generator is embedded in the generator object struct as a
30
[`_PyInterpreterFrame`](frames.md) (see`_PyGenObject_HEAD` in
31
-[`pycore_genobject.h`](../Include/internal/pycore_genobject.h)).
+[`pycore_interpframe_structs.h`](../Include/internal/pycore_interpframe_structs.h)).
32
This means that we can get the frame from the generator or the generator
33
-from the frame (see`_PyGen_GetGeneratorFromFrame` inthe same file).
+from the frame (see`_PyGen_GetGeneratorFromFrame` in[`pycore_genobject.h`](../Include/internal/pycore_genobject.h)).
34
Other fields of the generator struct include metadata (such as the name of
35
the generator function) and runtime state information (such as whether its
36
frame is executing, suspended, cleared, etc.).