Skip to content

cython 3.0 编译中的一个 warning,nogil 应该写在行尾 #84

Description

@milkpuff

一个小问题。
cython 3.0版本后,编译过程中提示warning,nogil 应该放在 except + 的后面
warning: ctpwrapper/headers/DataCollect.pxd:8:61: The keyword 'nogil' should appear at the end of the function signature line. Placing it before 'except' or 'noexcept' will be disallowed in a future version of Cython.
如要修复,简单调整顺序即可
void Release() nogil except +
修改为
void Release() except + nogil

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions