[New-bugs-announce] [issue35270] Cmd.complete does not handle cmd=None

daniel hahler report at bugs.python.org
Sat Nov 17 18:06:01 EST 2018

New submission from daniel hahler <python-bugs at thequod.de>:

When `parseline` returns `None` for `cmd` (like pdb++ might cause it when changing a cmd "disable" to "!disable"), the following will cause a TypeError:

> compfunc = getattr(self, 'complete_' + cmd)

"None" should be also forwarded to "completedefault", just like cmd="".

components: Library (Lib)
messages: 330035
nosy: blueyed
priority: normal
severity: normal
status: open
title: Cmd.complete does not handle cmd=None
type: crash
versions: Python 3.8

Python tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list