Re: [Cython] [cython-users] Recommendations for efficient typed arrays in Cython?

2013-02-01 Thread Greg Ewing
Sturla Molden wrote: The way I see it, "object" is a Python type and "PyObject*" is a C type. That is, PyObject* is just a raw C pointer with respect to behavior. Well... while it's possible to declare something as PyObject* in Cython and get raw pointer behaviour, it's something you should onl

Re: [Cython] [cython-users] Recommendations for efficient typed arrays in Cython?

2013-02-01 Thread Sturla Molden
On 01.02.2013 01:11, Greg Ewing wrote: Without the cdef, these variables would be stored wherever Python normally stores variables for the relevant scope, which could be in a module or instance dict, and the usual Python/C API machinery is used to access them. Distinguishing between Python an