Re: [Cython] [cython-users] Confused by user's guide

2013-08-12 Thread Stefan Behnel
Robert Bradshaw, 13.08.2013 06:13: > def do_math2(top_temp, bottom_temp): > cdef int top = top_temp > cdef int bottom = bottom_temp > return do_math_c(top, bottom) > > cdef do_math_c(int top, int bottom): > return top / bottom > > which doesn't really matter to the user except tha

Re: [Cython] [cython-users] Confused by user's guide

2013-08-12 Thread Robert Bradshaw
On Mon, Aug 12, 2013 at 1:37 AM, Zak wrote: > I bet some people are still confused, because I would have been confused if > I read that a few months ago. Let me explain with code: > > # This is a Python function: > def do_math(top, bottom): > return top / bottom > > # This is also a Python fun