[Numpy-discussion] import overhead of numpy.testing

Ralf Gommers ralf.gommers at gmail.com
Sun Aug 11 05:02:47 EDT 2013


On Sun, Aug 11, 2013 at 3:35 AM, Benjamin Root <ben.root at ou.edu> wrote:

> Would there be some sort of way to detect that numpy.testing wasn't
> explicitly imported and issue a deprecation warning? Say, move the code
> into numpy._testing, import in into the namespace as testing, but then have
> the testing.py file set a flag in _testing to indicate an explicit import
> has occurred?
>
> Eventually, even _testing would no longer get imported by default and all
> will be well.
>
> Of course, that might be too convoluted?
>
I'm not sure how that would work (you didn't describe how to decide that
the import was explicit), but imho the impact would be too high.

Ralf
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20130811/67cf59de/attachment.html>


More information about the NumPy-Discussion mailing list