Simplifying imports?

chapolim-colorado at chapolim-colorado at
Tue Sep 13 05:09:31 CEST 2005

I like to keep my classes each in a separate file with the same name of
the class. The problem with that is that I end up with multiple imports
in the beginning of each file, like this:

from foo.Bar import Bar
from foo.Blah import Blah
from foo.Zzz import Zzz

What I'd like to do would be to replace it all by a single line:

from foo.* import *

Of course, that doesn't work, but is there a way to do something like


More information about the Python-list mailing list