global variables in imported modules

James Mills prologic at shortcircuit.net.au
Sun May 16 18:38:48 EDT 2010


On Mon, May 17, 2010 at 8:26 AM, vsoler <vicente.soler at gmail.com> wrote:
> However, can I be 100% sure that,no matter how I access variable
> 'x' (with config.x or mod.config.x) it is always the same 'x'. I mean
> that either reference of 'x' points to the same id(memory position)?

Yes it does unless you re-assign it.

--James



More information about the Python-list mailing list