Skip to content

Commit ac75e38

Browse files
committed
Some rewording.
1 parent c2b9e68 commit ac75e38

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

peps/pep-0797.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,14 +31,14 @@ For example::
3131
Background
3232
==========
3333

34-
At the C level, all objects in Python's C API are interacted with through their
35-
type (a pointer to a :c:type:`PyTypeObject`). For example, to call an object,
34+
At the C level, Python interacts with objects through their
35+
type (:c:member:`~PyObject.ob_type`). For example, to call an object,
3636
the interpreter will access the :c:member:`~PyTypeObject.tp_call` field on the
3737
object's type. This is where the magic of a shared object proxy can happen.
3838

3939
The :c:type:`!PyTypeObject` for a shared object proxy must implement
4040
wrapping behavior for every single field on the type object structure.
41-
So, going back to ``tp_call``, an object proxy must be able to "intercept" the
41+
So, for ``tp_call``, an object proxy must be able to "intercept" the
4242
call in such a way where the wrapped object's ``tp_call`` slot can be executed
4343
without thread-safety issues. This is done by switching the
4444
:term:`attached thread state`.

0 commit comments

Comments
 (0)