[Numpy-discussion] Renaming MaskedArray._basedict

Nathan Bell wnbell@gmail....
Sun Aug 3 15:31:33 CDT 2008


On Sun, Aug 3, 2008 at 1:29 PM, Pierre GM <pgmdevlist@gmail.com> wrote:
>
> I intend to put a DeprecationWarning at the beginning of numpy.ma.core. A
> side-effect is that this warning is issued each time numpy.ma is imported,
> which clutters the output of the tests.
> Am I missing something ?

Can you could trap it in __getattr_ instead?  For instance:
http://projects.scipy.org/scipy/scipy/browser/trunk/scipy/sparse/csr.py#L87


-- 
Nathan Bell wnbell@gmail.com
http://graphics.cs.uiuc.edu/~wnbell/


More information about the Numpy-discussion mailing list