<div dir="ltr"><br><br><div class="gmail_quote"><div dir="ltr">On Mon, Dec 10, 2018 at 8:27 AM Alan Isaac <<a href="mailto:alan.isaac@gmail.com">alan.isaac@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On 12/10/2018 11:20 AM, Ralf Gommers wrote:<br>
> there is nothing wrong with the current API<br>
<br>
Just to be clear: you completely reject the past<br>
cautions on this list against creating APIs<br>
with flag parameters.  Is that correct?<br></blockquote><div><br></div><div>There's no such caution in general. There are particular cases of keyword arguments that behave in certain ways that are best avoided in the future, for example `full_output=False` to return extra arguments. In this case, the `replace` keyword just switches between two methods, which seems perfectly normal to me.</div><div><br></div><div>Either way, even things like `full_output` are not a good reason to deprecate something. We deprecate things because they're buggy, have severe usability issues, or some similar reason that translates to user pain.</div><div><br></div><div>Cheers,</div><div>Ralf</div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
Or is "nothing wrong" just a narrow approval in<br>
this particular case?<br>
<br>
Alan Isaac<br>
_______________________________________________<br>
NumPy-Discussion mailing list<br>
<a href="mailto:NumPy-Discussion@python.org" target="_blank">NumPy-Discussion@python.org</a><br>
<a href="https://mail.python.org/mailman/listinfo/numpy-discussion" rel="noreferrer" target="_blank">https://mail.python.org/mailman/listinfo/numpy-discussion</a><br>
</blockquote></div></div>