首页| JavaScript| HTML/CSS| Matlab| PHP| Python| Java| C/C++/VC++| C#| ASP| 其他|
购买积分 购买会员 激活码充值

您现在的位置是:虫虫源码 > Python > 一个Python writev实施

一个Python writev实施

  • 资源大小:3.42 kB
  • 上传时间:2021-06-29
  • 下载次数:0次
  • 浏览次数:0次
  • 资源积分:1积分
  • 标      签: 一个 实施 Pythonwritev

资 源 简 介

Introduction python-writev is a module providing an interface to the writev(2) unix system call. Status Currently beta status. The author is a newcomer to python C extensions and may have gotten the reference counting wrong, especially in error conditions. Reviews are welcome. Usage import writevwritten = writev.writev(fd, [string1, string2, ...])written, remaining = writev.lwritev(fd, [string1, string2, ...]) The writev function is a simple wrapper around writev. It returns the number of bytes written successfully. The lwritev function is an enhanced interface which does the work of generating a list of unwritten strings for you. It returns a tuple composed of an integer containing the bytes written, and a list. The list contains, first, a new string composed of the unwritten bytes of any partially-written string, and then the remaining whole unwritten strings. Discussion For d

文 件 列 表

python-writev-1.1
setup.py
writevmodule.c
PKG-INFO
README.txt
VIP VIP
0.176985s