[Numpy-discussion] Renaming MaskedArray._basedict

Eric Firing efiring at hawaii.edu
Sun Aug 3 18:26:22 EDT 2008


Pierre GM wrote:
> All,
> I intend to rename a little-known attribute of MaskedArray, _basedict, to 
> something more understandable such as _optinfo. This attribute is a 
> dictionary that comes handy when subclassing MaskedArray or to save 
> information. 
> _basedict would still be available for a while as an alias to _optinfo, but 
> may disappear in the long run.
> 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 ?

Pierre,

The attribute name, _basedict, indicates that it is a private attribute, 
so I don't see why a deprecation warning is needed at all.  Anyone using 
private attributes should also be reading release notes.  I don't like 
the idea of a warning popping up upon each import of numpy.ma.

Eric



More information about the NumPy-Discussion mailing list