Cython:如何禁用调试符号
我使用这段代码:
from distutils.core import setup
from Cython.Build import cythonize
if __name__ == '__main__':
setup(ext_modules=cythonize(f"some_module.pyx"))
我从命令行运行它,如下所示:
python build.py build_ext --inplace
如果代码中有任何错误,则行号、模块和函数(如果错误在其中)将在错误文本中指示。
Traceback (most recent call last):
File "C:\Users\SLLMK\Desktop\Test.py", line 1, in <module>
import some_module
File "some_module.pyx", line 18, in init some_module
TypeError: 'float' object is not iterable
如何禁用此数据的显示?
操作系统:Windows。
I use this code:
from distutils.core import setup
from Cython.Build import cythonize
if __name__ == '__main__':
setup(ext_modules=cythonize(f"some_module.pyx"))
And I run it from the command line like this:
python build.py build_ext --inplace
If there was any error in the code, then the line number, module and function (if the error is inside it) will be indicated in the error text.
Traceback (most recent call last):
File "C:\Users\SLLMK\Desktop\Test.py", line 1, in <module>
import some_module
File "some_module.pyx", line 18, in init some_module
TypeError: 'float' object is not iterable
How can I disable the display of this data?
OS: Windows.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论