Variables with cross-module usage

2009-11-28 Thread Nitin Changlani.
Hello everyone, I am fairly new to Python and occasionally run into problems that are almost always resolved by referring to this mailing-list's archives. However, I have this one issue which has got me stuck and I hope you will be tolerant enough to help em out with it! What I want to achieve is

Re: Variables with cross-module usage

2009-11-28 Thread Nitin Changlani.
indly suggest what is the correct way to go about it? Nitin. > > > > > Hi Nitin, > > > > On Sat, Nov 28, 2009 at 14:36, MRAB wrote: > >> Nitin Changlani. wrote: > >>> three.py > >>> > >>> import one >

Re: Variables with cross-module usage

2009-11-28 Thread Nitin Changlani
Thanks for the reply MRAB, Rami, Matt and Mel, I was assuming that since one.myList0] = one.a, the change in one.a will ultimately trickle down to myList[0] whenever myList[0] is printed or used in an expression. It doesn't come intuitively to me as to why that should not happen. Can you kindly su

Re: Variables with cross-module usage

2009-11-29 Thread Nitin Changlani.
Thanks Dennis and Steve, This explains it all! I will discard using one.a and use one.myList[0] directly, instead. I really appreciate your patience and the elaboration of the concept. Warm Regards, Nitin Changlani. On Sun, Nov 29, 2009 at 1:02 AM, Steven D'Aprano < st...@rem