How to Lock Globar Variables across Modules?

William Djaja Tjokroaminata billtj at
Thu Sep 28 16:03:05 CEST 2000

On Thu, 28 Sep 2000, Simon Brunning wrote:

> > From:	William Djaja Tjokroaminata [SMTP:billtj at]
> > In 1), typing '' is more tedious than just typing 'sv'.  I
> > wish python had some macro just like in C/C++ with its pre-processor:
> > 
> >     #define sv
> > 
> sv =
> Cheers,
> Simon Brunning
> TriSystems Ltd.
> sbrunning at

Hi, Simon

Thanks for your response.  But as I have written in my first posting, the
statement in other modules of

    sv =

only refers to the initial value of ''.  When
'' is changed (to point to another object), sv is not
changed (still points to the original object).  That's why I wish python
has a reference feature like in C++ or Perl.



More information about the Python-list mailing list