[Python-Dev] __dir__, part 2

Fredrik Lundh fredrik at pythonware.com
Fri Nov 10 18:21:35 CET 2006


Guido van Rossum 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.

(what about vars(), btw?)

</F>



More information about the Python-Dev mailing list