mirror of
https://github.com/python/cpython.git
synced 2025-07-07 19:35:27 +00:00
Docs: Fix the _PyGenObject_HEAD
reference in the InternalDocs/generators.md
(#133739)
This commit is contained in:
parent
a1e2e6ca91
commit
2cc99b3dd3
1 changed files with 2 additions and 2 deletions
|
@ -28,9 +28,9 @@ interpreter state.
|
||||||
|
|
||||||
The `frame` of a generator is embedded in the generator object struct as a
|
The `frame` of a generator is embedded in the generator object struct as a
|
||||||
[`_PyInterpreterFrame`](frames.md) (see `_PyGenObject_HEAD` in
|
[`_PyInterpreterFrame`](frames.md) (see `_PyGenObject_HEAD` in
|
||||||
[`pycore_genobject.h`](../Include/internal/pycore_genobject.h)).
|
[`pycore_interpframe_structs.h`](../Include/internal/pycore_interpframe_structs.h)).
|
||||||
This means that we can get the frame from the generator or the generator
|
This means that we can get the frame from the generator or the generator
|
||||||
from the frame (see `_PyGen_GetGeneratorFromFrame` in the same file).
|
from the frame (see `_PyGen_GetGeneratorFromFrame` in [`pycore_genobject.h`](../Include/internal/pycore_genobject.h)).
|
||||||
Other fields of the generator struct include metadata (such as the name of
|
Other fields of the generator struct include metadata (such as the name of
|
||||||
the generator function) and runtime state information (such as whether its
|
the generator function) and runtime state information (such as whether its
|
||||||
frame is executing, suspended, cleared, etc.).
|
frame is executing, suspended, cleared, etc.).
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue