On 9/8/10 2:15 PM, Simon King wrote:
Hi Jason!

On 8 Sep., 20:57, Jason Grout<jason-s...@creativetrax.com>  wrote:
Actually, for a while now, "for i in range(...)" is translated into fast
C intelligently.  In fact, I believe it's the recommended syntax now,
instead of 0<=i<...

Even if you do *not* cdefine "cdef int i"? That's new to me.


No, you still need to do cdef int i, I believe.

So:

cdef int i
for i in range(10):
   ....


should be fast.

Jason

--
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org

Reply via email to