猿问

Eventlet 中断 select.poll

Eventlet 猴子补丁似乎破坏了我的 ENV 上的 py3 select.poll()(我尝试安装 openstack 讽刺),但 openstack 组无法重现此问题,有人知道为什么吗?


我可以简单地通过以下方式重现它:


Python 3.6.9 (default, Nov  7 2019, 10:44:02) 

[GCC 8.3.0] on linux

Type "help", "copyright", "credits" or "license" for more information.

>>> import eventlet

>>> 

>>> eventlet.monkey_patch()

>>> import select

>>> select.poll

Traceback (most recent call last):

  File "<stdin>", line 1, in <module>

AttributeError: module 'select' has no attribute 'poll'

>>> eventlet.version_info

(0, 25, 0)

>>> 


白衣非少年
浏览 129回答 1
1回答

喵喔喔

这是故意的,因为select.poll()不是“绿色”。另见:https ://github.com/eventlet/eventlet/issues/608#issuecomment-612359458
随时随地看视频慕课网APP

相关分类

Python
我要回答