On Sun, Aug 11, 2013 at 3:35 AM, Benjamin Root <ben.root@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