[Python-Dev] inspect() and dir()
Ethan Furman
ethan at stoneleaf.us
Wed Oct 9 06:50:01 CEST 2013
On 10/08/2013 03:07 PM, Guido van Rossum wrote:
>
> I'd say that the effect overriding dir() has on help() is intentional. Not sure about inspect -- it has other uses.
> However, the last time I used it I was definitely hunting for stuff to document.
If want help to be effected that is easy enough -- there is already an inspect.classify_class_attrs wrapper, so if we
add some post-processing to remove anything not in dir(obj) we would keep the current behavior in help().
Any other comments/recollections/concerns?
--
~Ethan~
More information about the Python-Dev
mailing list