What does "|" mean in a string like numpy?

Many examples of dtype lines in the numpy documentation have a leading character | for example, '|S10' at the top of the structured arrays page in but not the structured arrays page and a link to data type objects seem to explain what that | means. What does | in this context and where is it documented?

+8
python numpy
source share
1 answer

It refers to byteorder / endianness in dtype. In particular, '|' indicates that the byte order is not applicable, for example, with 8-bit numbers.

+7
source share

All Articles