[New-bugs-announce] [issue38097] cmd.Cmd: Allow other readline completion methods
report at bugs.python.org
Tue Sep 10 18:27:54 EDT 2019
New submission from Mann Jani <mann4jani at gmail.com>:
readline has completion methods other than `complete` such as `menu-complete` or `menu-complete-backward` which behave differently.
Currently Cmd class has hardcoded `complete` method to the completion key which means trying to use other methods is not possible in a derived class without re-implementing cmdloop, or using some other crazy workarounds.
IMO Cmd.__init__ should take another argument named completionmethod with the default value of "complete" so that existing usage is not broken but it is possible to pass other values.
components: Library (Lib)
title: cmd.Cmd: Allow other readline completion methods
versions: Python 3.9
Python tracker <report at bugs.python.org>
More information about the New-bugs-announce