[Python-Dev] inspect() and dir() (original) (raw)
Ethan Furman ethan at stoneleaf.us
Wed Oct 9 06:50:01 CEST 2013
- Previous message: [Python-Dev] inspect() and dir()
- Next message: [Python-Dev] inspect() and dir()
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Previous message: [Python-Dev] inspect() and dir()
- Next message: [Python-Dev] inspect() and dir()
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]