Getting ideas after posting...

One could also declare known return type of existing ptyhon lib functions like 
this:

assumetype(cython.types.int, sum)

def foo(arr):
  s = sum(arr)
  # s is now  native C int

leading to eliminating all the casts.

Dag Sverre Seljebotn

_______________________________________________
Cython-dev mailing list
[email protected]
http://codespeak.net/mailman/listinfo/cython-dev

Reply via email to