Re: Mutual interdependency problem

2006-06-07 Thread AdSR
Jeremy Sanders wrote: > I'm getting problems with modules with interdependencies when using the > import form "import foo.bar as bar". > > [snip] > > Maybe the "from foo import *" style in __init__.py is a bad idea, but it > allows you to expose a flat namespace without having to put all the code >

Mutual interdependency problem

2006-06-07 Thread Jeremy Sanders
I'm getting problems with modules with interdependencies when using the import form "import foo.bar as bar". Here are a set of files which replicate the problem :: importproblem/__init__.py :: # This is blank :: importproblem/dir1/__init__.py :: fr