Skip to content

Commit 02ee139

Browse files
committed
fixup! add paragraph about multiple threads
1 parent 1dfc8b4 commit 02ee139

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

peps/pep-0768.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ expressions, and step through code dynamically. This approach would align
110110
Python's debugging capabilities with those of other major programming languages
111111
and debugging tools that support this mode.
112112

113-
Specification
113+
/Specification
114114
=============
115115

116116

@@ -334,10 +334,10 @@ Multi-threading Considerations
334334

335335
Debugging code injected through this interface executes opportunistically in
336336
whichever thread first encounters a safe evaluation point after the request is
337-
made. This behavior mirrors how Python handles signals, providing a reliable
338-
execution model without adding overhead. For developers needing to target
337+
made. This behavior is different on how Python handles signals in the sense that
338+
signal handlers can only run in the main thread. For developers needing to target
339339
specific threads, the debug script can be installed only on the desired thread
340-
structure or in all of them if needed.
340+
structure.
341341

342342
The Global Interpreter Lock (GIL) continues to govern execution as normal when
343343
debug code runs. This means if a target thread is currently executing a C

0 commit comments

Comments
 (0)