python类set_handle_inheritable()的实例源码

_socket3.py 文件源码 项目:oa_qian 作者: sunqb 项目源码 文件源码 阅读 23 收藏 0 点赞 0 评论 0
def set_inheritable(self, inheritable):
                os.set_handle_inheritable(self.fileno(), inheritable)
_socket3.py 文件源码 项目:RealtimePythonChat 作者: quangtqag 项目源码 文件源码 阅读 25 收藏 0 点赞 0 评论 0
def set_inheritable(self, inheritable):
                os.set_handle_inheritable(self.fileno(), inheritable)
socket.py 文件源码 项目:PySocket 作者: falseen 项目源码 文件源码 阅读 27 收藏 0 点赞 0 评论 0
def set_inheritable(self, inheritable):
            os.set_handle_inheritable(self.fileno(), inheritable)
_utils.py 文件源码 项目:perf 作者: vstinner 项目源码 文件源码 阅读 22 收藏 0 点赞 0 评论 0
def set_handle_inheritable(handle, inheritable):
            flags = HANDLE_FLAG_INHERIT if inheritable else 0

            ok = SetHandleInformation(handle, HANDLE_FLAG_INHERIT, flags)
            if not ok:
                raise WinError()
_utils.py 文件源码 项目:perf 作者: vstinner 项目源码 文件源码 阅读 35 收藏 0 点赞 0 评论 0
def to_subprocess(self):
        if MS_WINDOWS:
            set_handle_inheritable(self._handle, True)
            arg = self._handle
        else:
            set_inheritable(self._fd, True)
            arg = self._fd
        return str(arg)
socket.py 文件源码 项目:ouroboros 作者: pybee 项目源码 文件源码 阅读 36 收藏 0 点赞 0 评论 0
def set_inheritable(self, inheritable):
            os.set_handle_inheritable(self.fileno(), inheritable)
_socket3.py 文件源码 项目:zenchmarks 作者: squeaky-pl 项目源码 文件源码 阅读 27 收藏 0 点赞 0 评论 0
def set_inheritable(self, inheritable):
                os.set_handle_inheritable(self.fileno(), inheritable)
socket.py 文件源码 项目:kbe_server 作者: xiaohaoppy 项目源码 文件源码 阅读 25 收藏 0 点赞 0 评论 0
def set_inheritable(self, inheritable):
            os.set_handle_inheritable(self.fileno(), inheritable)
_socket3.py 文件源码 项目:Lixiang_zhaoxin 作者: hejaxian 项目源码 文件源码 阅读 22 收藏 0 点赞 0 评论 0
def set_inheritable(self, inheritable):
                os.set_handle_inheritable(self.fileno(), inheritable)


问题


面经


文章

微信
公众号

扫码关注公众号