Re: Dynamic Import with sub module

2015-05-23 Thread Douglas Garstang
ub-modules from common. I'm essentially loading the entire package here because I need to put an import for every sub module into __init__.py anyway. :( Doug. On Sat, May 23, 2015 at 9:03 AM, Douglas Garstang wrote: > All, > > Can someone tell me how the following statement: > >

Dynamic Import with sub module

2015-05-23 Thread Douglas Garstang
All, Can someone tell me how the following statement: import slice_fablib_common.common as common would be replicated with __import__ or import_module? I'm using fabric and I want the module when imported to appear in the namespace (which fabric shows as a task), in this case, as 'common.chef'.

Re: Merging two dictionaries

2010-08-02 Thread Douglas Garstang
On Mon, Aug 2, 2010 at 1:09 AM, Peter Otten <__pete...@web.de> wrote: > Douglas Garstang wrote: > >> I have the two dictionaries below. How can I merge them, such that: >> >> 1. The cluster dictionary contains the additional elements from the >> default dicti

Re: Merging two dictionaries

2010-08-02 Thread Douglas Garstang
On Mon, Aug 2, 2010 at 12:47 AM, Paul Rubin wrote: > Douglas Garstang writes: >> default = {... >>                 'data_sources': { ... >> cluster = {... >>                 'data_source': { ... > > Did you want both of those to say the same t

Re: Merging two dictionaries

2010-08-02 Thread Douglas Garstang
On Sun, Aug 1, 2010 at 11:57 PM, Gary Herron wrote: > On 08/01/2010 11:11 PM, Douglas Garstang wrote: >> >> On Sun, Aug 1, 2010 at 10:58 PM, Gary Herron >>  wrote: >> >>> >>> On 08/01/2010 10:09 PM, Douglas Garstang wrote: >>> >>>>

Merging two dictionaries

2010-08-01 Thread Douglas Garstang
7;, 'platform': { 'elements': { 'data_source': { 'elements': { 'username': 'username', 'password': 'password', 'db_min_pool_size': 10 # This was added from the default. }, }, }, }, } } Thanks, Doug. -- Regards, Douglas Garstang http://www.linkedin.com/in/garstang Email: doug.garst...@gmail.com Cell: +1-805-340-5627 -- http://mail.python.org/mailman/listinfo/python-list