New submission from Mann Jani <mann4j...@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) messages: 351748 nosy: mannjani priority: normal severity: normal status: open title: cmd.Cmd: Allow other readline completion methods type: enhancement versions: Python 3.9 _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue38097> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com