[Numpy-discussion] parsing dtype descriptors

Ted Sandler ted.sandler at gmail.com
Thu Jul 3 13:17:10 EDT 2014


Hi all, is there a spec or grammar for valid values of numpy dtype
descriptor strings?

I am writing code to parse ".npy" files from Java and want to be able to
handle the range of ndarray descriptor strings. I came across this code:

   dtype = numpy.dtype(d['descr'])

at line 267 in format.py:

   https://github.com/numpy/numpy/blob/master/numpy/lib/format.py

However, I can't seem to find where it's implemented.

Help is appreciated.  Thanks!
Ted
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20140703/dc08bcca/attachment.html>


More information about the NumPy-Discussion mailing list