Variables with cross-module usage

Nitin Changlani changlani.nitin at gmail.com
Sat Nov 28 22:18:11 EST 2009


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 suggest what is the correct way to go about it?

Nitin.




More information about the Python-list mailing list