由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Programming版 - python下的expect
相关主题
mpirun vs scriptjava concurrency时,你们用的callable还是runnable?
How to use multi-core to speed Python programC++的一个mutex问题
有人熟悉Python里的threading吗真正的multi-threading是5个thread要5个cpu?那apache是真正的m
学python要学到什么程度才算professional?python的muti process和multi threading有啥优劣?
python + django 2天搞定。golang 一个thread safe singleton问题
multithread app的design要注意哪些问题?python Global Lock
哪位同修能帮我测试一下python + django可以作multi-threading,php multi-threading貌
问题一枚python怎么实现这样的功能?让别人上传文件然后后台处理给出结果,最好能online做
相关话题的讨论汇总
话题: python话题: thread话题: expect话题: real话题: block
进入Programming版参与讨论
1 (共1页)
j*a
发帖数: 14423
1
有没有定时器那样的东西,定时执行一个函数的。pexpect看了不行
tcl的expect就有一个timeout {}的玩意儿。
b******n
发帖数: 592
2
kron

【在 j*a 的大作中提到】
: 有没有定时器那样的东西,定时执行一个函数的。pexpect看了不行
: tcl的expect就有一个timeout {}的玩意儿。

r****t
发帖数: 10904
3
use threading, make a loop that calls a callable every some minutes.
b******n
发帖数: 592
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
发帖数: 1119
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
发帖数: 592
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
发帖数: 84
7
read the date time, then you know how to do the rest....
r****t
发帖数: 10904
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.

r****t
发帖数: 10904
9
用twisted:
reactor.callLater(delay, func)
然后在func里面载接着call reactor.callLater就行了。

【在 j*a 的大作中提到】
: 有没有定时器那样的东西,定时执行一个函数的。pexpect看了不行
: tcl的expect就有一个timeout {}的玩意儿。

1 (共1页)
进入Programming版参与讨论
相关主题
python怎么实现这样的功能?让别人上传文件然后后台处理给出结果,最好能online做python + django 2天搞定。
uber用的python作的api.不是java, phpmultithread app的design要注意哪些问题?
在c++下调用python哪位同修能帮我测试一下
multi threading 还是 multi processing问题一枚
mpirun vs scriptjava concurrency时,你们用的callable还是runnable?
How to use multi-core to speed Python programC++的一个mutex问题
有人熟悉Python里的threading吗真正的multi-threading是5个thread要5个cpu?那apache是真正的m
学python要学到什么程度才算professional?python的muti process和multi threading有啥优劣?
相关话题的讨论汇总
话题: python话题: thread话题: expect话题: real话题: block