On this page
  1. readline.get_current_history_length
  2. Import
  3. Signature & Overview
  4. Usage
  5. Gotchas
  6. REPL Inspect

readline.get_current_history_length

Prev: readline.get_completion_type | Up: readline | Next: readline.get_endidx
Rel: readline.add_history, readline.clear_history, readline.get_begidx, readline.get_completer
Ref: docs.python.org — readline.get_current_history_length
Tags: #public #python3 #stdlib #readline


Import

import readline
from readline import get_current_history_length

Signature & Overview

readline.get_current_history_length()

Return the current (not the maximum) length of history.

Usage

import readline

assert readline.get_current_history_length() >= 0

Gotchas

REPL Inspect

from readline import get_current_history_length
help(get_current_history_length)

Linked from

Related notes