[issue35270] Cmd.complete does not handle cmd=None

2021-09-07 Thread Irit Katriel


Irit Katriel  added the comment:

Changing type since crash is typically used for a segfault rather than an 
exception.

--
nosy: +iritkatriel
type: crash -> behavior

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue35270] Cmd.complete does not handle cmd=None

2018-11-17 Thread daniel hahler


Change by daniel hahler :


--
keywords: +patch
pull_requests: +9833
stage:  -> patch review

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue35270] Cmd.complete does not handle cmd=None

2018-11-17 Thread daniel hahler


New submission from daniel hahler :

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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com