astrofrog/package-template — pull request #7 by eteq (2011-12-22 07:12:03+00:00)
Title: Fibtoprime

This changes the guts of the cython example to something that actually makes sene to do with Cython - the Fibonnaci example was actually *slower* using Cython than pure python because of the overhead for calling the function seems to be much larger than the actual difference between the guts of the algorithm (and the C version can't go past the machine long limit). So this instead uses a prime number generator, which is a much better showcase of when Cython is useful (nested for loops).

(Note that this pull request is based on astrofrog/package-template#6, so you'll want to merge that first if you choose to merge this... or to see just what this does, diff against that branch)