binding a reference to a variable

Andrew Koenig ark at research.att.com
Wed Apr 10 17:30:08 EDT 2002


Bengt> What about x() as the spelling of get-x's-value and x(v) as the
Bengt> spelling of set-x's-value-to-v-and-return-v?

That still assumes that the value of x was set previously.

If I make that assumption, there are lots of ways of solving the
problem -- the first one I suggested was simply to set x to [].

-- 
Andrew Koenig, ark at research.att.com, http://www.research.att.com/info/ark



More information about the Python-list mailing list