cython/cython — pull request #99 by dagss (2012-03-21 21:36:22+00:00)
Title: Stopgap solution for NumPy 1.7 API changes

NumPy is starting to seriously deprecating access to the member fields
in an ndarray (it was always frowned upon, but now it is starting to
become enforced). To support the large body of Cython code out there
accessing these fields (arr.shape[0] and so on), we special-case
PyArrayObject in Cython, with special knowledge of the NumPy API.

Ideally, we may introduce features in Cython in the future that allows
specifying this kind of magic with syntax in pxd files, and then we can
move away from special-casing NumPy.

PS. This may not yet have been tested with enough versions of NumPy, though a beta is a good way to find out...