Skip to content

Commit

Permalink
Fix wording (thanks, Chris)
Browse files Browse the repository at this point in the history
  • Loading branch information
tekknolagi committed Jan 19, 2024
1 parent 27d9856 commit cc88674
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions _posts/2024-01-13-typed-c-extensions.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@ API function from PyPy, it has to stop what it's doing, set up some C API
scaffolding, do the C API call, and then take down the scaffolding.

For example, the C API is centered around `PyObject` pointers. PyPy does not
normally use `PyObject`s. It has to allocate a `PyObject`, make it point into
the PyPy heap, call the C API function, and then (potentially) free the
`PyObject`. (This ignores GIL stuff and exception checking, which is also an
issue.)
use `PyObject`s in the normal execution of Python code. When it interacts with
C API code, it has to allocate a `PyObject`, make it point into the PyPy heap,
call the C API function, and then (potentially) free the `PyObject`. (This
ignores GIL stuff and exception checking, which is also an issue.)

<figure style="display: block; margin: 0 auto;">
<object class="svg" type="image/svg+xml" data="/assets/img/python-capi-box.svg">
Expand Down

0 comments on commit cc88674

Please sign in to comment.