【发布时间】:2015-11-10 23:55:57
【问题描述】:
我想将我的 Python 版本从 2.7 更新到 3.5。
编译使用PyString_InternFromString 和此Py_InitModule 的代码时
我收到错误消息:
Error 199 error C3861: 'Py_InitModule': identifier not found
Error 196 error C3861: 'PyString_InternFromString': identifier not found
我的问题是,python 3.5 中的那些标识符等价于什么?
【问题讨论】:
-
对于
py_InitModulepython 3 uses a different structure 和PyString_InternFromString,它只是unavailable for python 3
标签: python python-3.x native-code