[Numpy-discussion] proposed changes to array printing in 1.14

Robert Kern robert.kern at gmail.com
Fri Jun 30 19:55:16 EDT 2017


On Fri, Jun 30, 2017 at 4:47 PM, Gael Varoquaux <
gael.varoquaux at normalesup.org> wrote:
>
> One problem is that it becomes hard (impossible?) for downstream packages
> such as scikit-learn to doctest under multiple versions of the numpy.
> Past experience has shown that it could be useful.

It's not that hard: wrap the new `set_printoptions(pad=True)` in a `try:`
block to catch the error under old versions.

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


More information about the NumPy-Discussion mailing list