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.


On Tue, Oct 8, 2013 at 2:29 PM, Ethan Furman <et...@stoneleaf.us> wrote:

> Greetings,
>
> Currently, inspect() is dependent on dir().
>
> Now that we can override what dir() returns on a class by class basis, we
> are seeing the side-effect of (possibly) incomplete inspect results, with
> also leads to (possibly) incomplete help().
>
> I would think we want inspect to be more thorough, and return whatever it
> finds on the object, as well as whatever an abbreviated dir() might return.
>
> Thoughts?
>
> --
> ~Ethan~
> ______________________________**_________________
> Python-Dev mailing list
> Python-Dev@python.org
> https://mail.python.org/**mailman/listinfo/python-dev<https://mail.python.org/mailman/listinfo/python-dev>
> Unsubscribe: https://mail.python.org/**mailman/options/python-dev/**
> guido%40python.org<https://mail.python.org/mailman/options/python-dev/guido%40python.org>
>



-- 
--Guido van Rossum (python.org/~guido)
_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
https://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to