【问题标题】:I got a trio input function from a friend and it's trying to use trio.lowleve.FdStream, however I can't find it我从朋友那里得到了一个 trio 输入函数,它正在尝试使用 trio.lowleve.FdStream,但是我找不到它
【发布时间】:2021-05-03 15:30:23
【问题描述】:

我收到此错误:AttributeError: module 'trio.lowlevel' has no attribute 'FdStream'。 FdStream 不在 git 的三重奏代码中,也不在我的安装中。有没有替代品,或者有没有我没有找到的不同版本?

【问题讨论】:

标签: python python-trio


【解决方案1】:

该属性仅在非 Windows 平台上可用。如果你的朋友让这个函数只兼容 Linux/macos,你也需要在 Posix 平台上运行这个函数。

【讨论】:

    猜你喜欢
    • 2011-03-03
    • 1970-01-01
    • 1970-01-01
    • 2018-10-31
    • 1970-01-01
    • 2021-01-27
    • 2021-07-15
    • 1970-01-01
    • 2013-07-29
    相关资源
    最近更新 更多