import X between submodules in a package

Donn Ingle donn.ingle at gmail.com
Wed Dec 19 07:39:51 EST 2007


> would be a VeryBadThing(tm). 
:)

> Having explicits imports in each module is good wrt/ readability. 
Okay, I can accept that. I worry that it's opening the module file over and
over again - or does it open it once and kind of re-point to it when it
hits a second import of the same thing?

> package, you can of course factor them out in a distinct submodule and
> just do a 'from myimports import *' at the top of the others submodules...
Good point.

\d




More information about the Python-list mailing list