[Numpy-discussion] Renaming MaskedArray._basedict
Sun Aug 3 17:26:22 CDT 2008
Pierre GM wrote:
> 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
> _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 ?
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.
More information about the Numpy-discussion