python sys.thread_info,返回当前线程信息
sys.thread_info
python模块sys中的thred_infor可以用来返回当前的线程信息。python中源码的介绍:
A named tuple holding information about the thread implementation.
返回值
python的class sys.thread_info。
python返回当前线程信息实例代码
>>> type(sys.thread_info)
<class 'sys.thread_info'>
>>> sys.thread_info
sys.thread_info(name='pthread', lock='mutex+cond', version=None)