[Python-Dev] how to test my __all__ lists?

Guido van Rossum guido@digicool.com
Sat, 20 Jan 2001 12:38:38 -0500

> How do I test the __all__ lists I'm building?  I'm worried about a couple
> things:
>     1. I may have typos

Do "from M import *" -- this will raise an AttributeError if there's
something in __all__ that's not defined in the module.

>     2. I may leave something out of a list that should be imported by
>        from-module-import-*.

That's what alpha-testing's for.

--Guido van Rossum (home page: http://www.python.org/~guido/)