Skip to content

Commit de122f5

Browse files
committed
Change term for tp_dealloc warning
1 parent a761c4a commit de122f5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Doc/c-api/typeobj.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -689,7 +689,7 @@ and :c:data:`PyType_Type` effectively act as defaults.)
689689
object becomes part of a refcount cycle, that cycle might be collected by
690690
a garbage collection on any thread). This is not a problem for Python
691691
API calls, since the thread on which :c:member:`!tp_dealloc` is called
692-
will own the Global Interpreter Lock (GIL). However, if the object being
692+
with an active :term:`thread state`. However, if the object being
693693
destroyed in turn destroys objects from some other C or C++ library, care
694694
should be taken to ensure that destroying those objects on the thread
695695
which called :c:member:`!tp_dealloc` will not violate any assumptions of

0 commit comments

Comments
 (0)