Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/EmptyTag/156.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python 3.x 为什么Windows上的ProactReventLoop不使用串行端口?_Python 3.x - Fatal编程技术网

Python 3.x 为什么Windows上的ProactReventLoop不使用串行端口?

Python 3.x 为什么Windows上的ProactReventLoop不使用串行端口?,python-3.x,Python 3.x,已在Windows(ProactReventLoop所基于的)上使用串行端口尝试IOCP。它用我的Visual C++测试程序工作。 只是想知道为什么ProactReventLoop只支持套接字,而不支持像串行端口这样的文件描述符。据我所知,Python 3.5.1就是这种情况。因为Python的asyncio是一堆有点令人讨厌的即席攻击,对设计的一致性没有太多考虑 实际上,您可以将串行端口文件句柄馈送到ProactReventLoop中,但需要使用私有和未记录的函数。看看到底是哪一个做到了这一

已在Windows(ProactReventLoop所基于的)上使用串行端口尝试IOCP。它用我的Visual C++测试程序工作。
只是想知道为什么ProactReventLoop只支持套接字,而不支持像串行端口这样的文件描述符。据我所知,Python 3.5.1就是这种情况。

因为Python的asyncio是一堆有点令人讨厌的即席攻击,对设计的一致性没有太多考虑


实际上,您可以将串行端口文件句柄馈送到ProactReventLoop中,但需要使用私有和未记录的函数。看看到底是哪一个做到了这一点。

因为Python的asyncio是一堆稍微令人厌恶的临时黑客,并且没有太多考虑设计的一致性


实际上,您可以将串行端口文件句柄馈送到ProactReventLoop中,但需要使用私有和未记录的函数。看看哪个能做到这一点。

可以将IOCP与低级POSIX API一起使用吗?我想不会。但这正是os.open()和friends的基础。是否可以将IOCP与低级POSIXAPI结合使用?我想不会。但这正是os.open()和朋友的基础。