<div dir="auto"><br><span style="font-family:sans-serif;font-size:12.8px">Hello all,</span><div dir="auto" style="font-family:sans-serif;font-size:12.8px"><br></div><div dir="auto" style="font-family:sans-serif;font-size:12.8px">padding bytes can be relevant (for example hidden data). Why not add a new argument that the user can use to remove padding bytes?</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Apr 12, 2019, 20:01 Stefan van der Walt <<a href="mailto:stefanv@berkeley.edu">stefanv@berkeley.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Fri, 12 Apr 2019 12:13:18 -0400, Allan Haldane wrote:<br>
> I would be much more in favor of `copy` eliminating padding in the<br>
> dtype, if dtypes with different paddings were considered equivalent.<br>
> But they are not.<br>
<br>
This, and the simplicity arguments, are fair points.  Option (1) seems<br>
like the safer option, then, although I'm still not sure we should "sign<br>
a contract" to maintain exact byte-for-byte equivalence.<br>
<br>
Stéfan<br>
_______________________________________________<br>
NumPy-Discussion mailing list<br>
<a href="mailto:NumPy-Discussion@python.org" target="_blank" rel="noreferrer">NumPy-Discussion@python.org</a><br>
<a href="https://mail.python.org/mailman/listinfo/numpy-discussion" rel="noreferrer noreferrer" target="_blank">https://mail.python.org/mailman/listinfo/numpy-discussion</a><br>
</blockquote></div>