code: def set_buffer_limits(self, high=None, low=None):
          
          if high is None:
              high = self.default_buffer_size
          if low is None:
              low = high // 2
          self._buffer_high = high
          self._buffer_low = low
docs: Set the low and high watermarks for the read buffer.