def _get_repr(self):
        if self.itemtype == 'group':
            # s = '<Group   "{0:s}">'.format(self.fullname)
            s = self.fullname
        elif self.itemtype == 'dataset':
            item = self.file.f.get(self.fullname)
            shape, dtype = str(item.shape), str(item.dtype)
            try:
                nbytes = item.dtype.itemsize * item.size
            except:
                nbytes = item.dtype.itemsize * item.len()
            # s = '<Dataset "{0:s}": shape {1:s}, dtype "{2:s}">'.format(
                # self.fullname, shape, dtype)
            s = '{0:s}: shape {1:s}, dtype "{2:s}", {3:s}'.format(
                self.fullname, shape, dtype, format_size(nbytes))
        for attr in self._attrs():
            val = self.get(attr)
            s += '\n  * {0}: {1}'.format(attr, val)
        return s
a.blend(b[, weight=0.5]) <==> blend(a, b[, weights=0.5])
dataset/ETHPy150Open rossant/h5view/h5view.py/Item._get_repr--crossover with--dataset/ETHPy150Open CountZer0/PipelineConstructionSet/python/maya/site-packages/pymel-1.0.5/extras/completion/py/pymel/util/arrays.py/Array.blend