[Python-Dev] dir, part 2 (original) (raw)

Fredrik Lundh fredrik at pythonware.com
Fri Nov 10 21:25:02 CET 2006


Thomas Heller wrote:

No objection on targetting 2.6 if other developers agree. Seems this is well under way. good work!

given that dir() is used extensively by introspection tools, I'm not sure I'm positive to a dir that overrides the standard dir() behaviour. adding to the default dir() list is okay, re- placing it is a lot more questionable. One part that I would like about a complete overridable dir implementation is that it would be nice to customize what help(something) prints.

I don't think you should confuse reliable introspection with the help system, though. introspection is used for a lot more than implementing help().



More information about the Python-Dev mailing list