M
M
MazAlVlad2020-04-25 20:31:13
Python
MazAlVlad, 2020-04-25 20:31:13

How in Python to pause a Process until a key is pressed for debugging purposes?

If I understand correctly, then input() in the body of the Process does not work. How in Python to pause a Process until a key is pressed for debugging purposes?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Ivan Yakushenko, 2020-04-25
@MazAlVlad

A process should not interact with I/O devices, ideally a process is an isolated environment that processes input and returns a result when completed.
If you need to "pause the process and add data to it", then you are doing something wrong.
Specify the problem you are trying to solve, preferably with code examples, then I will suggest a possible solution.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question