首页 > 解决方案 > 用 Cython 和“下一步”编译

问题描述

每当我在代码中使用“下一步”时,我都会通过 VS 抛出此错误。在哪里或如何使用它似乎并不重要。该代码在 Python 中运行良好。虽然我可以使用“下一个”来写,但我能做些什么来更智能地解决这个问题吗?

error C2065: '__Pyx_PyIter_Next2': undeclared identifier

示例代码(编辑):

rand = None
for i in range(10):
    if rand == None:
        next

标签: pythoncvisual-studiocythonnext

解决方案


从 0.28.5 稳定版更新到最新的 beta (0.29b1) 解决了这个问题。


推荐阅读