def _update_from(self, obj):
if obj is not None and isinstance(obj, ndarray):<EOL><INDENT>_baseclass = type(obj)<EOL><DEDENT>else:<EOL><INDENT>_baseclass = ndarray<EOL><DEDENT>_optinfo = {}<EOL>_optinfo.update(getattr(obj, '<STR_LIT>', {}))<EOL>_optinfo.update(getattr(obj, '<STR_LIT>', {}))<EOL>if not isinstance(obj, MaskedArray):<EOL><INDENT>_optinfo.update(getattr(obj, '<STR_LIT>', {}))<EOL><DEDENT>_dict = dict(_fill_value=getattr(obj, '<STR_LIT>', None),<EOL>_hardmask=getattr(obj, '<STR_LIT>', False),<EOL>_sharedmask=getattr(obj, '<STR_LIT>', False),<EOL>_isfield=getattr(obj, '<STR_LIT>', False),<EOL>_baseclass=getattr(obj, '<STR_LIT>', _baseclass),<EOL>_optinfo=_optinfo,<EOL>_basedict=_optinfo)<EOL>self.__dict__.update(_dict)<EOL>self.__dict__.update(_optinfo)<EOL>return<EOL>
Copies some attributes of obj to self.