Re: On the property function

2009-06-16 Thread Lie Ryan
Chris Rebert wrote: > On Mon, Jun 15, 2009 at 5:43 AM, Virgil Stokes wrote: >> Does anyone have a good example (or examples) of when "property(...)" can be >> useful? > > Erm, when you want to create a property (i.e. computed attribute). > > from __future__ import division > class TimeDelta(objec

Re: On the property function

2009-06-16 Thread koranthala
On Jun 16, 9:19 am, Chris Rebert wrote: > On Mon, Jun 15, 2009 at 5:43 AM, Virgil Stokes wrote: > > Does anyone have a good example (or examples) of when "property(...)" can be > > useful? > > Erm, when you want to create a property (i.e. computed attribute). > > from __future__ import division >

Re: On the property function

2009-06-15 Thread Chris Rebert
On Mon, Jun 15, 2009 at 5:43 AM, Virgil Stokes wrote: > Does anyone have a good example (or examples) of when "property(...)" can be > useful? Erm, when you want to create a property (i.e. computed attribute). from __future__ import division class TimeDelta(object): def __init__(self, secs):

On the property function

2009-06-15 Thread Virgil Stokes
Does anyone have a good example (or examples) of when "property(...)" can be useful? Thank you, --V. Stokes -- http://mail.python.org/mailman/listinfo/python-list