Re: Are the property Function really useful? yes.

2012-08-30 Thread Dave Angel
see. In your case, the text part was empty, so I saw nothing but the subject line. Please tell your mail program to compose TEXT message, not html, or this problem could occur again. Now to your question. >>   >> Where can i use the property function? In some languages, you

Re: Are the property Function really useful?

2012-08-30 Thread Dieter Maurer
writes: > Are the property Function really useful? Someone invested time to implement/document/test it. Thus, there are people who have use cases for it... > Where can i use the property function? You can use it when you have parameterless methods which you want to access as if the

Re: Are the property Function really useful?

2012-08-29 Thread Mark Lawrence
On 29/08/2012 11:32, levinie...@gmail.com wrote: Rather more useful than your question :) -- Cheers. Mark Lawrence. -- http://mail.python.org/mailman/listinfo/python-list

Re: Are the property Function really useful? yes.

2012-08-29 Thread Dave Angel
On 08/29/2012 06:32 AM, levinie...@gmail.com wrote: -- DaveA -- http://mail.python.org/mailman/listinfo/python-list

Are the property Function really useful?

2012-08-29 Thread levinie001
Are the property Function really useful?   Where can i use the property function? -- http://mail.python.org/mailman/listinfo/python-list

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

Property Function

2008-09-23 Thread AON LAZIO
Hi, In python code, class A: get(self): do something set(self): do something g=property(get,set) what is the good use of "property" function?, I do not understand clearly.. Thanks in advance -- http://mail.python.org/mailma

Re: source for the property function

2008-09-02 Thread Bruno Desthuilliers
Rowland Smith a écrit : Anyone know where the source code for the built-in property function Actually, it's a class, not a function. is located in a python distribution? property being a builtin type, you should find it somewhere in the CPython's C source AFAICT. I would like

Re: source for the property function

2008-09-02 Thread Christian Heimes
Rowland Smith wrote: Anyone know where the source code for the built-in property function is located in a python distribution? I would like to see how it works - mainly, how does it know which class it is being called from? Property is not a function but a type. Properties are a common

Re: source for the property function

2008-09-02 Thread Diez B. Roggisch
Rowland Smith schrieb: Anyone know where the source code for the built-in property function is located in a python distribution? I would like to see how it works - mainly, how does it know which class it is being called from? Google the "descriptor protocol" for new-style cla

source for the property function

2008-09-02 Thread Rowland Smith
Anyone know where the source code for the built-in property function is located in a python distribution? I would like to see how it works - mainly, how does it know which class it is being called from? Thanks, Rowland -- http://mail.python.org/mailman/listinfo/python-list

Re: Metaclass v.s. Property function.

2007-08-14 Thread Jens Thiede
On Aug 11, 6:06 pm, Duncan Booth <[EMAIL PROTECTED]> wrote: > Jens Thiede <[EMAIL PROTECTED]> wrote: > > I don't like the property function, usable in the new-style classes, > > because having to remember to manage a list of "foo = property(...)" >

Re: Metaclass v.s. Property function.

2007-08-11 Thread Dustan
On Aug 11, 7:33 am, Jens Thiede <[EMAIL PROTECTED]> wrote: > I don't like the property function, usable in the new-style classes, > because having to remember to manage a list of "foo = property(...)" > assignments just plain sucks, so I wrote a metaclass that does

Re: Metaclass v.s. Property function.

2007-08-11 Thread Duncan Booth
Jens Thiede <[EMAIL PROTECTED]> wrote: > I don't like the property function, usable in the new-style classes, > because having to remember to manage a list of "foo = property(...)" > assignments just plain sucks, so I wrote a metaclass that does things > a littl

Metaclass v.s. Property function.

2007-08-11 Thread Jens Thiede
I don't like the property function, usable in the new-style classes, because having to remember to manage a list of "foo = property(...)" assignments just plain sucks, so I wrote a metaclass that does things a little differently. Please have a look and tell me whether this is useful