how to import a module for global use in a library package ?
Jean-Michel Pichavant
jeanmichel at sequans.com
Wed May 12 04:26:33 EDT 2010
Terry Reedy wrote:
> On 5/11/2010 8:04 AM, Auré Gourrier wrote:
> I might make one submodule for imports and then do 'from rootlib.util
> import importmod as m' in the template. But I have no need now for such.
>
> Terry Jan Reedy
>
>
We did that, and we so regret it. After 5 years of intensive dev on that
application (with more than 10 different guys committing in the repos)
this module is now nothing but a real mess.
As soon as someone is writing twice the same import: "Oh I should put
this module into the auto import, it will save 4 sec of my time".
This module is now an inconsistent bunch of imports and global
assignements :( .
JM
More information about the Python-list
mailing list