Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #29398 > unrolled thread

Re: how to use property?

Started byIan Kelly <ian.g.kelly@gmail.com>
First post2012-09-17 18:35 -0600
Last post2012-09-17 18:35 -0600
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: how to use property? Ian Kelly <ian.g.kelly@gmail.com> - 2012-09-17 18:35 -0600

#29398 — Re: how to use property?

FromIan Kelly <ian.g.kelly@gmail.com>
Date2012-09-17 18:35 -0600
SubjectRe: how to use property?
Message-ID<mailman.849.1347928578.27098.python-list@python.org>
On Mon, Sep 17, 2012 at 6:26 PM, MRAB <python@mrabarnett.plus.com> wrote:
> On 2012-09-18 00:46, Dave Angel wrote:
>> An important difference from every other language I've used:  The user
>> of the attribute does not need to change his code when you decide it
>> needs reimplementation as a property.
>>
>> In C++ and java, for example, people will define getter and setter
>> methods just so they don't have to change them later.  Just "in case"
>> it's needed later.
>>
> C# and Delphi (IIRC) also support properties.

I don't know about Delphi, but in .NET changing between a public field
and a property breaks ABI.

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web