+ 1

{SOLVED} [PYTHON] Recursion but without reaching recursion limit

I want to call my function (it's get) every 0.1 second. I think that I can use recursion, but then soon I will reach recursion limit (yes, i know about changing it using sys). Can I do it another way, so my code will be able to run a lot of time without any errors?

1st May 2022, 4:18 PM
Kind_Cat
Kind_Cat - avatar
2 Antworten
+ 1
This can be done using threads for multitasking, see https://docs.python.org/3/library/threading.html#timer-objects https://code.sololearn.com/cbbBP1yu7TkT/?ref=app
1st May 2022, 5:20 PM
Sousou
Sousou - avatar
0
I want something like setTimeout in JS
1st May 2022, 4:40 PM
Kind_Cat
Kind_Cat - avatar