On Wed, Feb 8, 2023 at 1:42 PM Sebastian Berg <[email protected]>
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 -- [email protected]
> > To unsubscribe send an email to [email protected]
> > https://mail.python.org/mailman3/lists/numpy-discussion.python.org/
> > Member address: [email protected]
>
>
> _______________________________________________
> NumPy-Discussion mailing list -- [email protected]
> To unsubscribe send an email to [email protected]
> https://mail.python.org/mailman3/lists/numpy-discussion.python.org/
> Member address: [email protected]
>


-- 
Francesc Alted
_______________________________________________
NumPy-Discussion mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/numpy-discussion.python.org/
Member address: [email protected]

Reply via email to