This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Documentation of Property needs example
Type: Stage:
Components: Documentation Versions: Python 3.1, Python 3.2, Python 2.7, Python 2.6, Python 2.5
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: georg.brandl Nosy List: MLModel, georg.brandl
Priority: normal Keywords:

Created on 2010-03-18 14:24 by MLModel, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (2)
msg101262 - (view) Author: Mitchell Model (MLModel) Date: 2010-03-18 14:24
Strangely, the extensive documentation of the property function in the "Built-in Functions" of the documentation has no example of the use of a property. Readers unfamiliar with properties should be told that obj.x invokes the getter, obj.x=value the setter, etc. The lack of parentheses is particularly significant.
msg112519 - (view) Author: Georg Brandl (georg.brandl) * (Python committer) Date: 2010-08-02 19:23
Fixed in r83548.
History
Date User Action Args
2022-04-11 14:56:58adminsetgithub: 52419
2010-08-02 19:23:41georg.brandlsetstatus: open -> closed
resolution: fixed
messages: + msg112519
2010-03-18 14:24:33MLModelcreate