[Numpy-discussion] using loadtxt to load a text file in to a numpy array

Pauli Virtanen pav at iki.fi
Fri Jan 17 07:17:28 EST 2014

Julian Taylor <jtaylor.debian <at> googlemail.com> writes:
> For backward compatibility we *cannot* change S.
> Maybe we could change the meaning of 'a' but it would be safer
> to add a new dtype, possibly 'S' can be deprecated in favor
> of 'B' when we have a specific encoding dtype.

Note that the rename 'S' -> 'B' was not done in the Python 3 port,
because 'B' already denotes uint8,

>>> np.array([1], dtype='B')
array([1], dtype=uint8)

Pauli Virtanen

More information about the NumPy-Discussion mailing list