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

2021-06-24 Thread Ralf Gommers
On Thu, Jun 24, 2021 at 6:12 AM Gagandeep Singh wrote: > To me, adding enums as attributes of the `np.copy` function seems like a > pretty good idea. This trick might resolve the only relatively important > issue with Enums. Then, the benefits of Enum might outweigh the > disadvantage of uncommon

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

2021-06-24 Thread Stefan van der Walt
On Thu, Jun 24, 2021, at 01:03, Ralf Gommers wrote: > For this one, I'd say it kinda looks like we do need one, so then let's just > add one and be done with it, rather than inventing odd patterns like tacking > enum members onto an existing function. There are two arguments on the table that r

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

2021-06-24 Thread Stephan Hoyer
On Thu, Jun 24, 2021 at 1:03 AM Ralf Gommers wrote: > I agree with this. Enums are nice _in theory_, but once you start using > them you quickly figure out they're clunky, plus the all-caps looks bad > (I'd consider ignoring that style recommendation). For API design they > don't make all that mu