Label-Value (was: Re: Inheriting the @ sign from Ruby)
Rainer Deyke
root at rainerdeyke.com
Thu Dec 14 19:51:35 EST 2000
More information about the Python-list mailing list
Thu Dec 14 19:51:35 EST 2000
- Previous message (by thread): Label-Value
- Next message (by thread): Label-Value (was: Re: Inheriting the @ sign from Ruby)
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
"Alex Martelli" <aleaxit at yahoo.com> wrote in message news:91bbq102mtk at news1.newsguy.com... > "Rainer Deyke" <root at rainerdeyke.com> wrote in message > news:Co9_5.25465$x6.13756579 at news2.rdc2.tx.home.com... > > "Alex Martelli" <aleaxit at yahoo.com> wrote in message > > news:91a1vr02b02 at news2.newsguy.com... > > > 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 > > create. > > > > class MutableInt(UserInt.UserInt): > > def set(self, value): > > self.data = value > > UserInt is not in the Python 2 docs, though it's nice to hear it exists:-). Actually it doesn't, but it's trivial (if tedious) to implement. -- Rainer Deyke (root at rainerdeyke.com) Shareware computer games - http://rainerdeyke.com "In ihren Reihen zu stehen heisst unter Feinden zu kaempfen" - Abigor
- Previous message (by thread): Label-Value
- Next message (by thread): Label-Value (was: Re: Inheriting the @ sign from Ruby)
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list