[issue13214] Cmd: list available completions from the cmd.Cmd subclass and filter out EOF handler(s)

Catherine Devlin report at bugs.python.org
Mon Jul 30 09:07:03 CEST 2012


Catherine Devlin added the comment:

Needed to update the patch slightly for Python 3; now that filter() returns an iterator, ``do_help``'s call to 
names = self.get_names()
followed by
            names.sort()
was throwing an error, so I changed get_names to return a list.

----------
nosy: +Catherine.Devlin
Added file: http://bugs.python.org/file26593/python-cmd-better-filtering-py3.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue13214>
_______________________________________


More information about the Python-bugs-list mailing list