<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Jul 18, 2016 at 4:17 PM, Ethan Furman <span dir="ltr"><<a href="mailto:ethan@stoneleaf.us" target="_blank">ethan@stoneleaf.us</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><div id=":1kd" class="">- 'bytes.zeros' renamed to 'bytes.size', with option byte filler<br>
  (defaults to b'\x00')</div></blockquote></div><br>Seriously?  You went from a numpy-friendly feature to something rather numpy-hostile.</div><div class="gmail_extra">In numpy, ndarray.size is an attribute that returns the number of elements in the array.</div><div class="gmail_extra"><br></div><div class="gmail_extra">The constructor that creates an arbitrary repeated value also exists and is called numpy.full().</div><div class="gmail_extra"><br></div><div class="gmail_extra">Even ignoring numpy, bytes.size(count, value=b'\x00') is completely unintuitive.  If I see bytes.size(42) in someone's code, I will think: "something like int.bit_length(), but in bytes."</div><div class="gmail_extra"><br></div><div class="gmail_extra"><br></div><div class="gmail_extra"><br></div></div>