Loading...
Loading...
Compare original and translation side by side
.pyxnp.intnp.floatnp.bool.pyxnp.intnp.floatnp.bool| Extension | Description | Must Check |
|---|---|---|
| Cython implementation files | Critical - Often contain numpy calls |
| Cython declaration files | Yes - May contain type declarations |
| Python files | Yes - May use deprecated types |
| Build configuration | Yes - Defines compilation settings |
| Generated C/C++ files | Only if debugging compilation |
.py.pyx| 扩展名 | 描述 | 必须检查 |
|---|---|---|
| Cython实现文件 | 关键 - 通常包含numpy调用 |
| Cython声明文件 | 是 - 可能包含类型声明 |
| Python文件 | 是 - 可能使用已弃用类型 |
| 构建配置 | 是 - 定义编译设置 |
| 生成的C/C++文件 | 仅在调试编译问题时需要 |
.py.pyx| Deprecated | Replacement |
|---|---|
| |
| |
| |
| |
| |
| |
| 已弃用类型 | 替代方案 |
|---|---|
| |
| |
| |
| |
| |
| |
Grep for patterns like "np\.int[^0-9_]" across all filesSearch specifically in *.pyx and *.pxd files.pyxGrep for patterns like "np\.int[^0-9_]" across all filesSearch specifically in *.pyx and *.pxd files.pyx.pyx.py.pyx.pyx.pyx.py.pyx.pyx# Example verification pattern
import numpy as np
from module import cython_function
# Test with actual numpy arrays
test_data = np.array([1, 2, 3], dtype=np.int64)
result = cython_function(test_data)
assert result is not None# Example verification pattern
import numpy as np
from module import cython_function
# Test with actual numpy arrays
test_data = np.array([1, 2, 3], dtype=np.int64)
result = cython_function(test_data)
assert result is not Nonetype: "py".pyx.pyxnumpy.intnp.inttype: "py".pyx.pyxnumpy.intnp.int.pyx.pxd.py.pyx.pxd.py