hwt/hdl/types/arrayVal.py
def _getitem__val(self, key):
        """
        :atention: this will clone item from array, iterate over .val
            if you need to modify items
        """
        try:
            kv = key.val
            if not key._isFullVld():
                raise KeyError()
            else:
                if kv >= self._dtype.size:
                    raise KeyError()

            return self.val[kv].clone()
        except KeyError:
            return self._dtype.elmType.fromPy(None)
def _getitem__val(self, key):
        """
        :atention: this will clone item from array, iterate over .val
            if you need to modify items
        """
        try:
            kv = key.val
            if not key._isFullVld():
                raise KeyError()
            else:
                if kv >= self._dtype.size:
                    raise KeyError()

            return self.val[kv].clone()
        except KeyError:
            return self._dtype.elmType.fromPy(None)
def _getitem__val ( self , key ) : try : kv = key . val if not key . _isFullVld ( ) : raise KeyError ( ) else : if kv >= self . _dtype . size : raise KeyError ( ) return self . val [ kv ] . clone ( ) except KeyError : return self . _dtype . elmType . fromPy ( None )
:atention: this will clone item from array, iterate over .val
            if you need to modify items
: atention : this will clone item from array iterate over . val if you need to modify items