[Numpy-discussion] copy="never" discussion and no deprecation cycle?

Stefan van der Walt stefanv at berkeley.edu
Sun Jun 20 23:02:42 EDT 2021


On Sun, Jun 20, 2021, at 18:53, Charles R Harris wrote:
> 
> On Fri, Jun 18, 2021 at 8:52 AM Stefan van der Walt <stefanv at berkeley.edu> wrote:
>> __
>> On Thu, Jun 17, 2021, at 16:23, Stephan Hoyer wrote: 
>>> This happens all the time. Even if we make copy='never' an error *today*, users will be encountering existing versions of NumPy for years into the future, so we won't be able to change the behavior of copy='never' for a very long time. Our deprecation policy says we would need to wait at least one year for this, but frankly I'm not sure that's enough for the possibility of silent bugs. 3-4 years might be more realistic.
>> 
>> If we go the enum route, we may just as well deprecate string arguments at the same time so that we have the flexibility to introduce them again in the future.

That makes sense to me, but I think this would not preclude the enum from being introduced right now. If we make this change, the enum will become the only mechanism by which to get the behavior we currently have (copy-if-needed). 

Stéfan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.python.org/pipermail/numpy-discussion/attachments/20210620/fc6b3814/attachment.html>


More information about the NumPy-Discussion mailing list