[Python-Dev] Showstopper in import?
Skip Montanaro
skip@mojam.com (Skip Montanaro)
Fri, 2 Feb 2001 11:14:51 -0600 (CST)
MAL> Even though I agree that "from x import *" is bad style, it is
MAL> quite common in testing code or code which imports a set of symbols
MAL> from generated modules or modules containing only constants
MAL> e.g. for protocols, error codes, etc.
In fact, the entire exercise of making "from x import *" obey __all__ when
it's present is to at least reduce the "badness" of this bad style.
Skip