use threading, make a loop that calls a callable every some minutes.
b*n
4 楼
python threading is not real thread. I had a lot problem with it.
【在 r****t 的大作中提到】 : use threading, make a loop that calls a callable every some minutes.
d*q
5 楼
python thread is exactly a real thread hwoever it is restricted to GIL python interpreter allow only one thread running at any time.
【在 b******n 的大作中提到】 : python threading is not real thread. I had a lot problem with it.
b*n
6 楼
I don't know what is a real thread. Python thread is fake. In real life, blo cking one thread will not block other thread. In python, it will block every thing.
【在 d***q 的大作中提到】 : python thread is exactly a real thread : hwoever it is restricted to GIL : python interpreter allow only one thread running at any time.
c*x
7 楼
read the date time, then you know how to do the rest....
r*t
8 楼
no way!!!! block one python thread, 当然不会block any other python thread,要不还怎么叫thread?
blo every
【在 b******n 的大作中提到】 : I don't know what is a real thread. Python thread is fake. In real life, blo : cking one thread will not block other thread. In python, it will block every : thing.