Re: [Python-Dev] __dir__ and __all__

2007-02-04 Thread Josiah Carlson
See the two threads started in python-dev by Tomer Filiba on (according to my clock) July 6, 2006 and October 6, 2006, both have __dir__ in the subject. - Josiah Giovanni Bajo <[EMAIL PROTECTED]> wrote: > > Hello, > > I could not find a PEP for __dir__. I was thinking today that if __dir__ wa

[Python-Dev] __dir__ and __all__

2007-02-03 Thread Giovanni Bajo
Hello, I could not find a PEP for __dir__. I was thinking today that if __dir__ was added, I would find it useful if modules implemented it by returning __all__ (when __all__ is defined). Or even better, to return the same names that would be imported by a star-import (so, if __all__ is not def