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

2021-06-21 Thread Eric Wieser
Stefan, that sketch is more complicated than it needs to be - `np.copy` is a python function, so you can just attach the attributes directly! (although maybe there are implications for static typing) ``` class CopyFlag(enum.Enum): IF_NEEDED = 0 ALWAYS = 1 NEVER = 2 np.copy.IF_NEEDED =

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

2021-06-21 Thread Stefan van der Walt
On Sun, Jun 20, 2021, at 20:46, Gagandeep Singh wrote: > I have recently joined the mailing list and have gone through the previous > discussions on this thread. I would like to share my analysis (advantages and > disadvantages) of three possible alternatives (Enum, String, boolean) to > support