[Numpy-discussion] Deprecating `numpy.iterable`

Stephan Hoyer shoyer at gmail.com
Thu Feb 11 13:25:33 EST 2016


We certainly can (and probably should) deprecate this, but we can't remove
it for a very long time.

np.iterable is used in a lot of third party code.

On Wed, Feb 10, 2016 at 7:09 PM, Joseph Fox-Rabinovitz <
jfoxrabinovitz at gmail.com> wrote:

> I have created a PR to deprecate `np.iterable`
> (https://github.com/numpy/numpy/pull/7202). It is a very old function,
> introduced as a utility in 2005
> (
> https://github.com/numpy/numpy/commit/052a7b2e3276a303be1083022fc24d43084d2e14
> ),
> and there is no good reason for it to be part of the public API. It is
> used internally 10 times within numpy. I have repaced those usages
> with a private function `np.lib.function_base._iterable` and added a
> `DeprecationWarning` to the public function.
>
> Is there anyone that objects to deprecating this function?
>
> Regards,
>
>     -Joseph
> _______________________________________________
> NumPy-Discussion mailing list
> NumPy-Discussion at scipy.org
> https://mail.scipy.org/mailman/listinfo/numpy-discussion
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20160211/26e9e446/attachment.html>


More information about the NumPy-Discussion mailing list