# encoding: utf-8
# module select
# from (pre-generated)
# by generator 1.145
"""
This module supports asynchronous I/O on multiple file descriptors.
*** IMPORTANT NOTICE ***
On Windows and OpenVMS, only sockets are supported; on Unix, all file descriptors.
"""
# no imports
# functions
def select(rlist, wlist, xlist, timeout=None): # real signature unknown; restored from __doc__
"""
select(rlist, wlist, xlist[, timeout]) -> (rlist, wlist, xlist)
Wait until one or more file descriptors are ready for some kind of I/O.
The first three arguments are sequences of file descriptors to be waited for:
rlist -- wait until ready for reading
wlist -- wait until ready for writing
xlist -- wait for an ``exceptional condition''
If only one kind of condition is required, pass [] for the other lists.
A file descriptor is either a socket or file object, or a small integer
got
python select.py模块 rs,ws,es=select.select(inputs,[],[],1)
最新推荐文章于 2023-07-18 15:34:21 发布
本文介绍了如何使用Python的select模块进行网络I/O多路复用,特别是在结合Redis和WebSocket进行消息推送时的应用。通过`select.select(inputs,[],[],1)`,程序会阻塞直到输入列表中的套接字变为可读,例如接收到客户端的握手信号。参考链接提供了详细的实现细节。"
115948756,10552715,Matlab GARCH模型分位数计算与GED分布应用,"['GARCH模型', 'MATLAB编程', '金融统计', '风险管理', '分布函数']
摘要由CSDN通过智能技术生成