[Python-Dev] PEP 8 updates/clarifications (original) (raw)
Josiah Carlson jcarlson at uci.edu
Mon Dec 12 04:59:10 CET 2005
- Previous message: [Python-Dev] PEP 8 updates/clarifications
- Next message: [Python-Dev] PEP 8 updates/clarifications
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
skip at pobox.com wrote:
Ian> Do not use accessor methods, like
obj.getFoo()
and Ian>obj.setFoo(v)
, instead just expose a public attribute Ian> (obj.foo
). If necessary you can useproperty
to implement Ian> the same functionality that accessor methods would give you.Don't properties only work with new-style clsses? If so, this should probably be noted.
In the future, aren't all classes going to become new-style? Was it going to wait until Py3k, or sometime sooner?
- Josiah
- Previous message: [Python-Dev] PEP 8 updates/clarifications
- Next message: [Python-Dev] PEP 8 updates/clarifications
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]