[issue3396] rlcompleter can't autocomplete members of callable objects

Manuel Muradás report at bugs.python.org
Fri Jul 18 07:22:53 CEST 2008


Manuel Muradás <mmuradas at dieresys.com.ar> added the comment:

Oops, you are right. If that is the way we should handle this
regression, I could upload a patch. I also thought we could use
"hasattr", but that means using "getattr" twice. Something like:

if word[:n] == attr and word != "__builtins__" and hasattr(object, word):
    val = getattr(object, word)

What do you think about it?

----------
nosy: +dieresys

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


More information about the Python-bugs-list mailing list