(self)
return min(self._ring_length, len(self._buffer) - self._start)
Return the number of keystrokes in the buffer.
Return the number of keystrokes in the buffer.
Return the number of keystrokes in the buffer .
def length(self):
        """Return the number of keystrokes in the buffer."""
        return min(self._ring_length, len(self._buffer) - self._start)
def length ( self ) : return min ( self . _ring_length , len ( self . _buffer ) - self . _start )