标签: arguments runtime cython inspect
是否可以获取(检查)cython函数所需的参数数据类型? (我正在编写一个调用cython函数的辅助函数,我需要知道在运行时应传递给cython函数的数据类型。)
示例:
%%cython -a def f(unsigned char a, unsigned long a): pass
我要寻找的是此功能:
get_argument_types(f)
我希望
[np.uint8, np.uint64]