[issue5062] Rlcompleter.Completer does not use __dir__ magic method

Gabriel Genellina report at bugs.python.org
Tue Jan 27 07:46:15 CET 2009


Gabriel Genellina <gagsl-py2 at yahoo.com.ar> added the comment:

The check is made to decide whether the attribute is a method or not 
(because methods get a "(" appended) -- for names that fail to exist, 
one could just omit the "(" and include the name anyway.

rlcompleter does nothing special with __dir__, it always uses dir() 
only.

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


More information about the Python-bugs-list mailing list