[Tutor] Style question with classes and modules
tinoloc at gmail.com
Thu Jul 19 21:03:34 CEST 2007
Hi there Everybody,
I have style question with importing of modules and classes.
Presently, I have several files importing several modules.
My question is there any advantage to me wrapping them in a single file
(wrapper), and the importing a single file
into that file (barring namespace collisons). Example shown below:
# instead of
or perhaps even
from dbBase import dbBase
from dbCommon import dbCommon
from miscBase import miscBase
The two advantages that I can see are, I don't need to type as much, and
there would be a speed up in the execution of code.
Is there a reason why I shouldn't?
Thanks in advance,
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Tutor