[Numpy-discussion] NEP 21: Simplified and explicit advanced indexing

Robert Kern robert.kern at gmail.com
Tue Jun 26 21:54:14 EDT 2018


On Tue, Jun 26, 2018 at 6:47 PM Stephan Hoyer <shoyer at gmail.com> wrote:

>
> On Tue, Jun 26, 2018 at 6:39 PM Robert Kern <robert.kern at gmail.com> wrote:
>
>> I'd still prefer not talking deprecation, per se, in this NEP (but my
>> objection is weaker). I would definitely start adding in informative, noisy
>> warnings in these cases, though. Along the lines of, "Hey, this is a dodgy
>> construction that typically gives unexpected results. Here are
>> .oindex/.vindex that might do what you actually want, but you can use
>> .legacy_index if you just want to silence this warning". Rather than "Hey,
>> this is going to go away at some point."
>>
>
> Yes, agreed. These will use a new warning class, perhaps
> numpy.IndexingWarning.
>

Perfect.

-- 
Robert Kern
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20180626/25c4124d/attachment.html>


More information about the NumPy-Discussion mailing list