<br><br><div class="gmail_quote">On Wed, Mar 17, 2010 at 8:42 AM, Alan G Isaac <span dir="ltr"><<a href="mailto:aisaac@american.edu">aisaac@american.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="im">On 3/17/2010 10:16 AM, <a href="mailto:josef.pktd@gmail.com">josef.pktd@gmail.com</a> wrote:<br>
> numpy.resize(a, new_shape)<br>
> Return a new array with the specified shape.<br>
><br>
> If the new array is larger than the original array, then the new array<br>
> is filled with repeated copied of a. Note that this behavior is<br>
> different from a.resize(new_shape) which fills with zeros instead of<br>
> repeated copies of a.<br>
<br>
<br>
</div>Yes indeed.  Sorry, I must have scrolled the help without realizing it,<br>
and this part was at the top.<br>
<br>
So my follow up: why is this desirable/necessary?  (I find it surprising.)<br></blockquote><div><br>IIRC, it behaved that way in Numeric.<br><br>Chuck<br></div><br></div>