diff options
author | Sebastian Berg <sebastianb@nvidia.com> | 2022-11-21 10:59:04 +0100 |
---|---|---|
committer | Sebastian Berg <sebastianb@nvidia.com> | 2022-11-21 11:01:30 +0100 |
commit | 5f0f1e6c476fd4edfd58fd459666301e38a46a58 (patch) | |
tree | ffa133605d8a0a4527f6ac70e84ec6d8e7805e59 /numpy | |
parent | 742545f1336e7cd12cdf656792c44b90b9f0f4b9 (diff) | |
download | numpy-5f0f1e6c476fd4edfd58fd459666301e38a46a58.tar.gz |
API: (cython) remove `long_t` and `ulong_t`
They are both very confusing aliases. Unfortunately, I did not find
a way to give a more informative cython compilation error.
Thus, I pasted the expected error message in the hope it will be
easy to google.
The release notes are long and maybe confusing. I really want to
prepare us for switching the default integer to (probably) `intp`
and this could be rather disprutpive for Cython modules if, so
I thought it might be good to hint towards that, but maybe that is
too much?
Diffstat (limited to 'numpy')
-rw-r--r-- | numpy/__init__.cython-30.pxd | 2 | ||||
-rw-r--r-- | numpy/__init__.pxd | 2 |
2 files changed, 0 insertions, 4 deletions
diff --git a/numpy/__init__.cython-30.pxd b/numpy/__init__.cython-30.pxd index 5fd6086e0..7771d32bd 100644 --- a/numpy/__init__.cython-30.pxd +++ b/numpy/__init__.cython-30.pxd @@ -753,11 +753,9 @@ ctypedef double complex complex128_t # The int types are mapped a bit surprising -- # numpy.int corresponds to 'l' and numpy.long to 'q' ctypedef npy_long int_t -ctypedef npy_longlong long_t ctypedef npy_longlong longlong_t ctypedef npy_ulong uint_t -ctypedef npy_ulonglong ulong_t ctypedef npy_ulonglong ulonglong_t ctypedef npy_intp intp_t diff --git a/numpy/__init__.pxd b/numpy/__init__.pxd index 03db9a0c1..5ecdf3d0f 100644 --- a/numpy/__init__.pxd +++ b/numpy/__init__.pxd @@ -711,11 +711,9 @@ ctypedef double complex complex128_t # The int types are mapped a bit surprising -- # numpy.int corresponds to 'l' and numpy.long to 'q' ctypedef npy_long int_t -ctypedef npy_longlong long_t ctypedef npy_longlong longlong_t ctypedef npy_ulong uint_t -ctypedef npy_ulonglong ulong_t ctypedef npy_ulonglong ulonglong_t ctypedef npy_intp intp_t |