def getBufferContents(self, start, end):
      """Gets some values from the buffer"""
      start -= self.buffer_start
      end -= self.buffer_start
      return self.buffer[start:end]
Gets some values from the buffer
recipes/Python/392150_Buffered_Stream_Multiple_ForwardOnly/recipe-392150.py