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
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
>
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):
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