Guido> It's not consistent with what dir() of a class or instance does Guido> though. -1.
Agreed. The only official use I'm aware of is to restrict what is imported when you execute from mod import * Raymond> >>> Queue.__all__ Raymond> ['Empty', 'Full', 'Queue', 'PriorityQueue', 'LifoQueue'] >> I like the second one better. How would you easily ask an object for all its attributes? Skip _______________________________________________ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com