code: def sext(self, num):
          
          sign = self._items[-1]
          return self.__class__(self._items + [sign] * num, ftype=self.ftype)
docs: Sign-extend this farray by *num* bits.
  
          Returns a new farray.