On Mon, Nov 01, 2010 at 02:55:25PM +0000, Steven Bethard wrote: > On Mon, Nov 1, 2010 at 2:53 PM, Michael Foord <fuzzy...@voidspace.org.uk> > wrote: > > Isn't it better to add the missing elements - what is the problem with that > > approach? > > It just requires extra synchronization, and history shows that I > always forget to add them. ;-)
Automate: for key, value in globals().items(): if not key.startswith('_'): __all__.append(key) Further filter (by key or value) to your needs. Oleg. -- Oleg Broytman http://phd.pp.ru/ p...@phd.pp.ru Programmers don't die, they just GOSUB without RETURN. _______________________________________________ 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