8000 Docs: Fix the `_PyGenObject_HEAD` reference in the `InternalDocs/gene… · python/cpython@2cc99b3 · GitHub
[go: up one dir, main page]

Skip to content

Commit 2cc99b3

Browse files
authored
Docs: Fix the _PyGenObject_HEAD reference in the InternalDocs/generators.md (#133739)
1 parent a1e2e6c commit 2cc99b3

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)
0