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: doc string of read-only properties
Type: enhancement Stage:
Components: Interpreter Core Versions:
process
Status: closed Resolution: out of date
Dependencies: Superseder:
Assigned To: Nosy List: georg.brandl, mamrhein
Priority: normal Keywords:

Created on 2006-07-27 14:11 by mamrhein, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (2)
msg29326 - (view) Author: Michael Amrhein (mamrhein) Date: 2006-07-27 14:11
It would be nice if read-only properties (only fget
defined) that have no doc string assigned would
automatically show the doc string of the fget function.
This would allow to write code like
@property
def prop(self):
    """Property prop"""
    ...
while making the doc string visible at the property level.
msg29327 - (view) Author: Georg Brandl (georg.brandl) * (Python committer) Date: 2006-07-27 15:03
Logged In: YES 
user_id=849994

This is already in 2.5.
History
Date User Action Args
2022-04-11 14:56:19adminsetgithub: 43732
2006-07-27 14:11:34mamrheincreate