Re: Newbie: splitting dictionary definition across two .py files

2006-04-03 Thread Adam DePrince
On Fri, 2006-03-31 at 12:46 -0800, Karthik Gurusamy wrote: > Ben Finney wrote: > > [EMAIL PROTECTED] 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

Re: Newbie: splitting dictionary definition across two .py files

2006-03-31 Thread Ben Finney
"Karthik Gurusamy" <[EMAIL PROTECTED]> writes: > Ben Finney wrote: >> 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 require

Re: Newbie: splitting dictionary definition across two .py files

2006-03-31 Thread Karthik Gurusamy
Ben Finney wrote: > [EMAIL PROTECTED] 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 s

Re: Newbie: splitting dictionary definition across two .py files

2006-03-31 Thread Karthik Gurusamy
Ben Cartwright wrote: > [EMAIL PROTECTED] wrote: > > 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. > > > > build_cfg_static.py: > > target_db = {} > > target_db['foo'] = 'bar' > > >

Re: Newbie: splitting dictionary definition across two .py files

2006-03-30 Thread Ben Finney
[EMAIL PROTECTED] 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 o

Re: Newbie: splitting dictionary definition across two .py files

2006-03-30 Thread Ben Cartwright
[EMAIL PROTECTED] wrote: > 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. > > build_cfg_static.py: > target_db = {} > target_db['foo'] = 'bar' > > build_cfg.py > target_db['xyz'] = 'abc' >

Newbie: splitting dictionary definition across two .py files

2006-03-30 Thread kar1107
Hi, 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. build_cfg_static.py: target_db = {} target_db['foo'] = 'bar' build_cfg.py target_db['xyz'] = 'abc' In build.py, I