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

readline.get_completion_type

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


Import

import readline
from readline import get_completion_type

Signature & Overview

readline.get_completion_type()

Get the type of completion being attempted.

Usage

import readline

assert isinstance(readline.get_completion_type(), int)

Gotchas

REPL Inspect

from readline import get_completion_type
help(get_completion_type)

Linked from

Related notes