code: def readinto(self, buff):
          
          data = self.read(len(buff))
          buff[: len(data)] = data
          return len(data)
docs: Read up to ``len(buff)`` bytes into ``bytearray`` *buff* and return the
          number of bytes read.
  
          :returns:
              The number of bytes read.