Eventlet中断select.poll

问题描述 投票:1回答:1

Eventlet monkey补丁似乎破坏了我的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)
>>> 
python python-3.x openstack eventlet
1个回答
1
投票

这是故意的,因为 select.poll() 不是 "绿色"。

另请参见。https:/github.comeventleteventletissues608#issuecomment-612359458。

© www.soinside.com 2019 - 2024. All rights reserved.