You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
assignee=Noneclosed_at=Nonecreated_at=<Date2018-11-17.23:06:01.739>labels= ['3.8', 'type-bug', 'library']
title='Cmd.complete does not handle cmd=None'updated_at=<Date2021-09-07.14:24:40.604>user='https://github.com/blueyed'
Activity
blueyed commentedon Nov 17, 2018
When
parselinereturnsNoneforcmd(like pdb++ might cause it when changing a cmd "disable" to "!disable"), the following will cause a TypeError:"None" should be also forwarded to "completedefault", just like cmd="".
iritkatriel commentedon Sep 7, 2021
Changing type since crash is typically used for a segfault rather than an exception.
maurycy commentedon Dec 6, 2026
Fixed in 1d9406e (3.14; #133364):
cpython/Lib/test/test_cmd.py
Line 298 in f9704be
cc @StanFromIreland