Simplifying imports?
chapolim-colorado at bol.com.br
chapolim-colorado at bol.com.br
Mon Sep 12 23:09:31 EDT 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
that?
Chapolim
More information about the Python-list
mailing list