how to use property?
Ian Kelly
ian.g.kelly at gmail.com
Mon Sep 17 20:35:46 EDT 2012
On Mon, Sep 17, 2012 at 6:26 PM, MRAB <python at 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.
More information about the Python-list
mailing list