Open 1f7c169c-a6ad-45ae-b614-0d40d962c776 opened 5 years ago
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="".
Changing type since crash is typically used for a segfault rather than an exception.
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: ```python assignee = None closed_at = None created_at =
labels = ['3.8', 'type-bug', 'library']
title = 'Cmd.complete does not handle cmd=None'
updated_at =
user = 'https://github.com/blueyed'
```
bugs.python.org fields:
```python
activity =
actor = 'iritkatriel'
assignee = 'none'
closed = False
closed_date = None
closer = None
components = ['Library (Lib)']
creation =
creator = 'blueyed'
dependencies = []
files = []
hgrepos = []
issue_num = 35270
keywords = ['patch']
message_count = 2.0
messages = ['330035', '401285']
nosy_count = 2.0
nosy_names = ['blueyed', 'iritkatriel']
pr_nums = ['10588']
priority = 'normal'
resolution = None
stage = 'patch review'
status = 'open'
superseder = None
type = 'behavior'
url = 'https://bugs.python.org/issue35270'
versions = ['Python 3.8']
```