[Numpy-discussion] Behaviour of copy for structured dtypes with gaps
danielhrisca at gmail.com
Fri Apr 12 13:25:39 EDT 2019
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>
> 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.
> NumPy-Discussion mailing list
> NumPy-Discussion at python.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the NumPy-Discussion