Label-Value (was: Re: Inheriting the @ sign from Ruby)

Rainer Deyke root at
Thu Dec 14 14:42:26 EST 2000

"Alex Martelli" <aleaxit at> wrote in message
news:91a1vr02b02 at
> There is no value *IN* x.
> A variable *REFERS TO* 'a value' (aka 'an object').

If somebody really wants mutable integer objects, they're not that hard to

class MutableInt(UserInt.UserInt):
  def set(self, value): = value

x = MutableInt(2) + MutableInt(2)
print x
print x

Rainer Deyke (root at
Shareware computer games           - 
"In ihren Reihen zu stehen heisst unter Feinden zu kaempfen" - Abigor

More information about the Python-list mailing list