Re: combining namespaces when importing two modules

2005-08-22 Thread Fredrik Lundh
Donnal Walter wrote: >I would like to be able to write something like: > > import dcw as dw > import xyz as dw > > such that the 'dw' namespace includes definitions from both dcw and xyz, > but in the script above names from dcw1 are lost. How can I combine the > two? (I'd rather not use 'import *'

Re: combining namespaces when importing two modules

2005-08-22 Thread Peter Hansen
Donnal Walter wrote: > I would like to be able to write something like: > > import dcw as dw > import xyz as dw > > such that the 'dw' namespace includes definitions from both dcw and xyz, > but in the script above names from dcw1 are lost. How can I combine the > two? (I'd rather not use 'impo

combining namespaces when importing two modules

2005-08-22 Thread Donnal Walter
I would like to be able to write something like: import dcw as dw import xyz as dw such that the 'dw' namespace includes definitions from both dcw and xyz, but in the script above names from dcw1 are lost. How can I combine the two? (I'd rather not use 'import *'.) Thanks. Best regards, Donnal