how to use property?
Ian Kelly
ian.g.kelly at gmail.com
Mon Sep 17 20:35:46 EDT 2012
More information about the Python-list mailing list
Mon Sep 17 20:35:46 EDT 2012
- Previous message (by thread): how to use property?
- Next message (by thread): splitting numpy array unevenly
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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.
- Previous message (by thread): how to use property?
- Next message (by thread): splitting numpy array unevenly
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list