<div dir="ltr"><div>That sounds good to me.</div><div><br></div><div>I can always put np.outer = np.multiply.outer at the start of my code to get what I want.  Or could that break things?</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Apr 16, 2015 at 6:28 PM, Matthew Brett <span dir="ltr"><<a href="mailto:matthew.brett@gmail.com" target="_blank">matthew.brett@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<span class=""><br>
On Thu, Apr 16, 2015 at 3:19 PM, Neil Girdhar <<a href="mailto:mistersheik@gmail.com">mistersheik@gmail.com</a>> wrote:<br>
> Actually, looking at the docs, numpy.outer is *only* defined for 1-d<br>
> vectors.  Should anyone who used it with multi-dimensional arrays have an<br>
> expectation that it will keep working in the same way?<br>
><br>
> On Thu, Apr 16, 2015 at 10:53 AM, Neil Girdhar <<a href="mailto:mistersheik@gmail.com">mistersheik@gmail.com</a>><br>
> wrote:<br>
>><br>
>> Would it be possible to deprecate np.outer's usage on non one-dimensional<br>
>> vectors for a few versions, and then reintroduce it with definition np.outer<br>
>> == np.multiply.outer?<br>
<br>
</span>I think the general idea is that<br>
<br>
a) people often miss deprecation warnings<br>
b) there is lots of legacy code out there, and<br>
c) it's very bad if legacy code silently gives different answers in<br>
newer numpy versions<br>
d) it's not so bad if newer numpy gives an intelligible error for code<br>
that used to work.<br>
<br>
So, how about a slight modification of your proposal?<br>
<br>
1) Raise deprecation warning for np.outer for non 1D arrays for a few<br>
versions, with depraction in favor of np.multiply.outer, then<br>
2) Raise error for np.outer on non 1D arrays<br>
<br>
Best,<br>
<br>
Matthew<br>
<div class="HOEnZb"><div class="h5">_______________________________________________<br>
NumPy-Discussion mailing list<br>
<a href="mailto:NumPy-Discussion@scipy.org">NumPy-Discussion@scipy.org</a><br>
<a href="http://mail.scipy.org/mailman/listinfo/numpy-discussion" target="_blank">http://mail.scipy.org/mailman/listinfo/numpy-discussion</a><br>
</div></div></blockquote></div><br></div>