Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #29398
| References | <CAGYVzb1-D4xyCeYHL6R1_O8msDfn9pd=UcuYhno5i3HCkB_t=A@mail.gmail.com> <CAPTjJmrwctEeXfqmn1Aejqq8jR6p8-97Ur=E8E6PaeGe2o=+Rg@mail.gmail.com> <k38c2u$q28$1@ger.gmane.org> <5057B64F.2080500@davea.name> <5057BFC4.7020904@mrabarnett.plus.com> |
|---|---|
| From | Ian Kelly <ian.g.kelly@gmail.com> |
| Date | 2012-09-17 18:35 -0600 |
| Subject | Re: how to use property? |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.849.1347928578.27098.python-list@python.org> (permalink) |
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.
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: how to use property? Ian Kelly <ian.g.kelly@gmail.com> - 2012-09-17 18:35 -0600
csiph-web