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
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
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
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?
Where can i use the property function?
--
http://mail.python.org/mailman/listinfo/python-list
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
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
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
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
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
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
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(...)"
>
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
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
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
18 matches
Mail list logo