On Tue, Apr 14, 2009 at 9:03 AM, <eric.le.bi...@spectro.jussieu.fr> wrote: > Hello, > > Is there a way to easily build an object that behaves exactly like a > float, but whose value can be changed? The goal is to maintain a list > [x, y,…] of these float-like objects, and to modify their value on the > fly (with something like x.value = 3.14) so that any expression like "x > +y" uses the new value. > It's not clear what your requirement is. Why can't you just use floats? For your list, why can't you use a list of floats? Something is missing from your explanation. -- http://mail.python.org/mailman/listinfo/python-list
- Modifying the value of a float-like object Eric . Le . Bigot
- Re: Modifying the value of a float-like object Eric . Le . Bigot
- Re: Modifying the value of a float-like object David Smith
- Re: Re: Modifying the value of a float-like obj... Dave Angel
- Re: Modifying the value of a float-like object Eric . Le . Bigot
- Re: Modifying the value of a float-like object Steven D'Aprano
- Re: Re: Modifying the value of a float-like... Dave Angel
- Re: Modifying the value of a float-like obj... Steven D'Aprano
- Re: Re: Modifying the value of a float-... Dave Angel
- Re: Modifying the value of a float-like object David Robinow
- Re: Modifying the value of a float-like object Christian Heimes
- Re: Modifying the value of a float-like object Peter Otten
- Re: Modifying the value of a float-like object Eric . Le . Bigot
- Re: Modifying the value of a float-like obj... Steven D'Aprano
- Re: Modifying the value of a float-like obj... Peter Otten
- Re: Modifying the value of a float-like... Eric . Le . Bigot
- Re: Modifying the value of a float-like obj... Piet van Oostrum
- Re: Modifying the value of a float-like... Eric . Le . Bigot
- Re: Modifying the value of a float... Piet van Oostrum