Skip to content

Commit d3f97ca

Browse files
nybblistaPranjal095
authored andcommitted
Docs: Fix the _PyGenObject_HEAD reference in the InternalDocs/generators.md (python#133739)
1 parent 38d8c26 commit d3f97ca

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

InternalDocs/generators.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@ interpreter state.
2828

2929
The `frame` of a generator is embedded in the generator object struct as a
3030
[`_PyInterpreterFrame`](frames.md) (see `_PyGenObject_HEAD` in
31-
[`pycore_genobject.h`](../Include/internal/pycore_genobject.h)).
31+
[`pycore_interpframe_structs.h`](../Include/internal/pycore_interpframe_structs.h)).
3232
This means that we can get the frame from the generator or the generator
33-
from the frame (see `_PyGen_GetGeneratorFromFrame` in the same file).
33+
from the frame (see `_PyGen_GetGeneratorFromFrame` in [`pycore_genobject.h`](../Include/internal/pycore_genobject.h)).
3434
Other fields of the generator struct include metadata (such as the name of
3535
the generator function) and runtime state information (such as whether its
3636
frame is executing, suspended, cleared, etc.).

0 commit comments

Comments
 (0)