On Wed, Feb 8, 2023 at 1:42 PM Sebastian Berg <sebast...@sipsolutions.net> wrote:
> On Wed, 2023-02-08 at 12:48 +0100, Francesc Alted wrote: > > Hi, > > > > > > <snip> > > > Is there a way (or an ongoing effort) to express the variety of data > > types > > in NumPy that beats the above (which seems somewhat inconsistent to > > me)? > > How about using the Python buffer interface format string (maybe with > some limitations). > If you mean the array interface ( https://numpy.org/doc/stable/reference/arrays.interface.html), this is what dtype.str provides ( https://numpy.org/doc/stable/reference/generated/numpy.dtype.str.html). But the limitation here is that structured types are represented by the 'V' char, which is not properly representing it by any means. > But other than that, I don't have an obvious idea right now. > > - Sebsatian > > > > > Thanks! > > _______________________________________________ > > NumPy-Discussion mailing list -- numpy-discussion@python.org > > To unsubscribe send an email to numpy-discussion-le...@python.org > > https://mail.python.org/mailman3/lists/numpy-discussion.python.org/ > > Member address: sebast...@sipsolutions.net > > > _______________________________________________ > NumPy-Discussion mailing list -- numpy-discussion@python.org > To unsubscribe send an email to numpy-discussion-le...@python.org > https://mail.python.org/mailman3/lists/numpy-discussion.python.org/ > Member address: fal...@gmail.com > -- Francesc Alted
_______________________________________________ NumPy-Discussion mailing list -- numpy-discussion@python.org To unsubscribe send an email to numpy-discussion-le...@python.org https://mail.python.org/mailman3/lists/numpy-discussion.python.org/ Member address: arch...@mail-archive.com