Prototyping with Python code before compiling

前端 未结 7 1325
囚心锁ツ
囚心锁ツ 2021-01-30 17:56

I have been mulling over writing a peak-fitting library for a while. I know Python fairly well and plan on implementing everything in Python to begin with but envisage that I ma

7条回答
  •  有刺的猬
    2021-01-30 18:45

    Python is pretty liberal in allowing functions, functors, objects to be passed to functions and methods, whereas I suspect the same is not true of say C or Fortran.

    In C you cannot pass a function as an argument to a function but you can pass a function pointer which is just as good a function.

    I don't know how much that would help when you are trying to integrate C and Python code but I just wanted to clear up one misconception.

提交回复
热议问题