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)
>>> 发布于 2020-05-15 11:25:15
这是有意的,因为select.poll()不是“绿色”的。
另见:https://github.com/eventlet/eventlet/issues/608#issuecomment-612359458
https://stackoverflow.com/questions/61152057
复制相似问题