forked from numpy/numpy
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request numpy#22637 from seberg/cython_long_t
API: (cython) remove `long_t` and `ulong_t`
- Loading branch information
Showing
3 changed files
with
15 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
Cython ``long_t`` and ``ulong_t`` removed | ||
----------------------------------------- | ||
``long_t`` and ``ulong_t`` were aliases for ``longlong_t`` and ``ulonglong_t`` | ||
and confusing (a remainder from of Python 2). This change may lead to the errors:: | ||
|
||
'long_t' is not a type identifier | ||
'ulong_t' is not a type identifier | ||
|
||
We recommend use of bit-sized types such as ``cnp.int64_t`` or the use of | ||
``cnp.intp_t`` which is 32 bits on 32 bit systems and 64 bits on 64 bit | ||
systems (this is most compatible with indexing). | ||
If C ``long`` is desired, use plain ``long`` or ``npy_long``. | ||
``cnp.int_t`` is also ``long`` (NumPy's default integer). However, ``long`` | ||
is 32 bit on 64 bit windows and we may wish to adjust this even in NumPy. | ||
(Please do not hesitate to contact NumPy developers if you are curious about this.) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters