Newbie: splitting dictionary definition across two .py files

Adam DePrince adam.deprince at gmail.com
Mon Apr 3 10:37:19 EDT 2006


On Fri, 2006-03-31 at 12:46 -0800, Karthik Gurusamy wrote:
> Ben Finney wrote:
> > kar1107 at gmail.com writes:
> >
> > > I'm fairly new to python. I like to define a big dictionary in two
> > > files and use it my main file, build.py
> > >
> > > I want the definition to go into build_cfg.py and build_cfg_static.py.
> >
> > That sounds like a very confusing architecture, and smells very much
> > like some kind of premature optimisation. What leads you to that
> > design? It's very likely a better design can be suggested to meet your
> > actual requirements.
> 
> 
> I work in a source tree of 100s of .c files. The make file builds the
> various .o files from the .c files. It takes a while to finish on the
> first run. When I make changes to a .c file, I need to compile to get
> the .o and also quickly fix any compilation errors.  I don't want to
> use the make infrastructure, as it takes a while to resolve the
> dependencies.

Dependencies for 100 files? 

- Adam 





More information about the Python-list mailing list