Skip to content

Commit cf76777

Browse files
committed
expand the comment.
1 parent 9b1eaf6 commit cf76777

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Include/internal/pycore_pythread.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,10 @@ PyAPI_FUNC(int) PyThread_detach_thread(PyThread_handle_t);
159159
* normally from its start function. This is used during finalization in lieu
160160
* of actually exiting the thread. Since the program is expected to terminate
161161
* soon anyway, it does not matter if the thread stack stays around until then.
162+
*
163+
* This is unfortunate for embedders who may not be terminating their process
164+
* when they're done with the interpreter, but our C API design does not allow
165+
* for safely exiting threads attempting to re-enter Python post finalization.
162166
*/
163167
void _Py_NO_RETURN PyThread_hang_thread(void);
164168

0 commit comments

Comments
 (0)