Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 8bb75f1

Browse files
committed
DOC: Update the type table to mention the codes p and P
1 parent 358e31a commit 8bb75f1

File tree

1 file changed

+15
-4
lines changed

1 file changed

+15
-4
lines changed

doc/source/user/basics.types.rst

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,13 +67,24 @@ confusion with builtin python type names, such as `numpy.bool_`.
6767

6868
* - `numpy.intp`
6969
- N/A
70-
- ``intptr_t`` (defined in ``stdint.h``)
71-
- Platform-defined integer type capable of holding a pointer.
70+
- ``ssize_t``/``Py_ssize_t``
71+
- Platform-defined integer of size ``size_t``; used e.g. for sizes.
7272

7373
* - `numpy.uintp`
7474
- N/A
75-
- ``uintptr_t`` (defined in ``stdint.h``)
76-
- Platform-defined integer type capable of holding a pointer without sign.
75+
- ``size_t``
76+
- Platform-defined integer type capable of storing the maximum
77+
allocation size.
78+
79+
* - N/A
80+
- ``'p'``
81+
- ``intptr_t``
82+
- Guaranteed to hold pointers. Character code only (Python and C).
83+
84+
* - N/A
85+
- ``'P'``
86+
- ``uintptr_t``
87+
- Guaranteed to hold pointers. Character code only (Python and C).
7788

7889
* - `numpy.int32` or `numpy.int64`
7990
- `numpy.long`

0 commit comments

Comments
 (0)