Skip to content

Commit 0b0176b

Browse files
committed
Change term for the types tutorial
1 parent de122f5 commit 0b0176b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Doc/extending/newtypes_tutorial.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -403,8 +403,8 @@ the new attribute values. We might be tempted, for example to assign the
403403
But this would be risky. Our type doesn't restrict the type of the
404404
``first`` member, so it could be any kind of object. It could have a
405405
destructor that causes code to be executed that tries to access the
406-
``first`` member; or that destructor could release the
407-
:term:`Global interpreter Lock <GIL>` and let arbitrary code run in other
406+
``first`` member; or that destructor could detach the
407+
:term:`term state` and let arbitrary code run in other
408408
threads that accesses and modifies our object.
409409

410410
To be paranoid and protect ourselves against this possibility, we almost
@@ -413,8 +413,8 @@ don't we have to do this?
413413

414414
* when we absolutely know that the reference count is greater than 1;
415415

416-
* when we know that deallocation of the object [#]_ will neither release
417-
the :term:`GIL` nor cause any calls back into our type's code;
416+
* when we know that deallocation of the object [#]_ will neither detach
417+
the :term:`thread state` nor cause any calls back into our type's code;
418418

419419
* when decrementing a reference count in a :c:member:`~PyTypeObject.tp_dealloc`
420420
handler on a type which doesn't support cyclic garbage collection [#]_.

0 commit comments

Comments
 (0)