[Numpy-discussion] NumPy C-API now has prefixes
Travis Oliphant
oliphant at ee.byu.edu
Fri Jul 7 20:02:53 CDT 2006
I just committed a big change to the NumPy SVN (r2773-r2777) which adds
the prefix npy_ or NPY_ to all names not otherwise pre-fixed.
There is also a noprefix.h header that allows you to use the names
without the prefixes defined, as before
Plus:
1) The special FLAG names with _FLAGS now have the _FLAGS removed
2) The PY_ARRAY_TYPES_PREFIX is ignored.
3) The tMIN/tMAX macros are removed
4) MAX_DIMS --> NPY_MAXDIMS
5) OWN_DATA --> NPY_OWNDATA
There is the header
oldnumeric.h
that can be used for compatibility with the Numeric C-API (including the
names CONTIGUOUS and OWN_DATA).
Please,
try out the new C-API and let's get the bugs wrinkled out.
Hopefully this will give us a more solid foundation for the future...
I've already committed changes to matplotlib SVN that allow it to work
with old and new NumPy.
-Travis
More information about the Numpy-discussion
mailing list