> The precalculation optimisations are 
> taking place.  If you pass it an argument to use for the upper limit of the 
> sequence the calculation time shoots up.

I'm still confused about when the addition takes place. 
Surely the compiler has to do the addition, so it should be slower?
I assume you have to run the posted code through cython
prior to running it in Python?

You can probably tell that I've never used Cython! :-)

Alan G.
_______________________________________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor

Reply via email to