[Numpy-discussion] C-extension -- how do I accept a vector of both type double and type int?

Robert Kern robert.kern@gmail....
Thu Jul 26 20:17:40 CDT 2007


Geoffrey Zhu wrote:

> This is probably off the topic. Do you know such a function for
> regular python objects? For example, I know a PyObject is a number,
> but I don't know the exact type. Is there any quick way to convert it
> to a C double type?

I just answered your question on the python-list.

-- 
Robert Kern

"I have come to believe that the whole world is an enigma, a harmless enigma
 that is made terrible by our own mad attempt to interpret it as though it had
 an underlying truth."
  -- Umberto Eco


More information about the Numpy-discussion mailing list