[Numpy-discussion] Behaviour of copy for structured dtypes with gaps

Daniel Hrisca danielhrisca at gmail.com
Fri Apr 12 13:25:39 EDT 2019


Hello all,

padding bytes can be relevant (for example hidden data). Why not add a new
argument that the user can use to remove padding bytes?

On Fri, Apr 12, 2019, 20:01 Stefan van der Walt <stefanv at berkeley.edu>
wrote:

> On Fri, 12 Apr 2019 12:13:18 -0400, Allan Haldane wrote:
> > I would be much more in favor of `copy` eliminating padding in the
> > dtype, if dtypes with different paddings were considered equivalent.
> > But they are not.
>
> This, and the simplicity arguments, are fair points.  Option (1) seems
> like the safer option, then, although I'm still not sure we should "sign
> a contract" to maintain exact byte-for-byte equivalence.
>
> Stéfan
> _______________________________________________
> NumPy-Discussion mailing list
> NumPy-Discussion at python.org
> https://mail.python.org/mailman/listinfo/numpy-discussion
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20190412/1f7e3383/attachment.html>


More information about the NumPy-Discussion mailing list