> So if I have an array, do I have always to do something like this?

You can consider using NumPy arrays. Then you construct a NumPy array the
Python way, and only access it's internal buffer from Cython, meaning that
you always have a full, valid Python object. NumPy contains methods for
converting that array to a list if you need to (but it is more efficient
to simply use the array in your Python code).

http://new.scipy.org/Wiki/Cookbook/Pyrex_and_NumPy


Dag Sverre

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

Reply via email to