Skip to content

Commit d385017

Browse files
committed
Fix typos in InternalDocs/interpreter.md
1 parent 228f275 commit d385017

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

InternalDocs/interpreter.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ When the interpreter's
2020
[`PyEval_EvalCode()`](https://docs.python.org/3.14/c-api/veryhigh.html#c.PyEval_EvalCode)
2121
function is called to execute a `CodeObject`, it constructs a [`Frame`](frames.md) and calls
2222
[`_PyEval_EvalFrame()`](https://docs.python.org/3.14/c-api/veryhigh.html#c.PyEval_EvalCode)
23-
to execute the code object in this frame. The frame hold the dynamic state of the
23+
to execute the code object in this frame. The frame holds the dynamic state of the
2424
`CodeObject`'s execution, including the instruction pointer, the globals and builtins.
2525
It also has a reference to the `CodeObject` itself.
2626

@@ -153,9 +153,9 @@ More information about the use of inline caches can be found in
153153
Most instructions read or write some data in the form of object references (`PyObject *`).
154154
The CPython bytecode interpreter is a stack machine, meaning that its instructions operate
155155
by pushing data onto and popping it off the stack.
156-
The stack is forms part of the frame for the code object. Its maximum depth is calculated
156+
The stack forms part of the frame for the code object. Its maximum depth is calculated
157157
by the compiler and stored in the `co_stacksize` field of the code object, so that the
158-
stack can be pre-allocated is a contiguous array of `PyObject*` pointers, when the frame
158+
stack can be pre-allocated as a contiguous array of `PyObject*` pointers, when the frame
159159
is created.
160160

161161
The stack effects of each instruction are also exposed through the
@@ -462,7 +462,7 @@ set of values that allows them to:
462462
2. Perform the operation quickly.
463463

464464
This requires that the set of values is chosen such that membership can be
465-
tested quickly and that membership is sufficient to allow the operation to
465+
tested quickly and that membership is sufficient to allow the operation to be
466466
performed quickly.
467467

468468
For example, `LOAD_GLOBAL_MODULE` is specialized for `globals()`

0 commit comments

Comments
 (0)