[Python-Dev] inspect() and dir() (original) (raw)
Guido van Rossum guido at python.org
Wed Oct 9 00:07:29 CEST 2013
- Previous message: [Python-Dev] inspect() and dir()
- Next message: [Python-Dev] inspect() and dir()
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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 <ethan at 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 at 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) -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.python.org/pipermail/python-dev/attachments/20131008/26b6ad3a/attachment.html>
- Previous message: [Python-Dev] inspect() and dir()
- Next message: [Python-Dev] inspect() and dir()
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]