parameters: (self, obj)
return_statement: return
docstring: Copies some attributes of obj to self.
docstring_summary: Copies some attributes of obj to self.
docstring_tokens: Copies some attributes of obj to self .
function: def _update_from(self, obj):
          """
          Copies some attributes of obj to self.
  
          """
          if isinstance(obj, ndarray):
              _baseclass = type(obj)
          else:
              _baseclass = ndarray
          # We need to copy the _basedict to avoid backward propagation
          _optinfo = {}
          _optinfo.update(getattr(obj, '_optinfo', {}))
          _optinfo.update(getattr(obj, '_basedict', {}))
          if not isinstance(obj, MaskedArray):
              _optinfo.update(getattr(obj, '__dict__', {}))
          _dict = dict(_fill_value=getattr(obj, '_fill_value', None),
                       _hardmask=getattr(obj, '_hardmask', False),
                       _sharedmask=getattr(obj, '_sharedmask', False),
                       _isfield=getattr(obj, '_isfield', False),
                       _baseclass=getattr(obj, '_baseclass', _baseclass),
                       _optinfo=_optinfo,
                       _basedict=_optinfo)
          self.__dict__.update(_dict)
          self.__dict__.update(_optinfo)
          return
function_tokens: def _update_from ( self , obj ) : if isinstance ( obj , ndarray ) : _baseclass = type ( obj ) else : _baseclass = ndarray # We need to copy the _basedict to avoid backward propagation _optinfo = { } _optinfo . update ( getattr ( obj , '_optinfo' , { } ) ) _optinfo . update ( getattr ( obj , '_basedict' , { } ) ) if not isinstance ( obj , MaskedArray ) : _optinfo . update ( getattr ( obj , '__dict__' , { } ) ) _dict = dict ( _fill_value = getattr ( obj , '_fill_value' , None ) , _hardmask = getattr ( obj , '_hardmask' , False ) , _sharedmask = getattr ( obj , '_sharedmask' , False ) , _isfield = getattr ( obj , '_isfield' , False ) , _baseclass = getattr ( obj , '_baseclass' , _baseclass ) , _optinfo = _optinfo , _basedict = _optinfo ) self . __dict__ . update ( _dict ) self . __dict__ . update ( _optinfo ) return