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

2013-01-31 Thread Greg Ewing
On 01/02/13 09:31, Sturla Molden wrote: cdef object a cdef list b cdef foobar c etc to define Python variables. 'cdef' seems to indicate that it is a C declaration, yet here it is not. Yes, it is. In this context, the cdef isn't about the type of the variable, it's about where and how it's sto

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

2013-01-31 Thread Sturla Molden
On 29.01.2013 22:15, Sal wrote: I don't have any 'typical' Python code yet, everything is 'cdef' type stuff, but reference counting is still performed by Cython on 'cdef' types, so sticking them into a C++ array probably ignores that fact. I think the main difficulty with Cython (for beginners

[Cython] embedsignature issue (with both Sphinx and Epydoc)

2013-01-31 Thread g b
Hello, I tried the "embedsignature=True" compilation directive on both Sphinx and Epydoc and it resulted in : I had to pass a more python compliant signature in the very first line of the docstring for each method of my classes. See this thread : http://stackoverflow.com/questions/14616882/ho