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: Update to property.__doc__
Type: enhancement Stage:
Components: Interpreter Core Versions: Python 3.0, Python 2.6
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: gvanrossum Nosy List: christian.heimes, gvanrossum
Priority: low Keywords: patch

Created on 2007-11-11 23:23 by christian.heimes, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
property_docstring.patch christian.heimes, 2007-11-11 23:23
Messages (3)
msg57385 - (view) Author: Christian Heimes (christian.heimes) * (Python committer) Date: 2007-11-11 23:23
The patch adds the new syntax to the doc string of property:

Decorators makes defining new or modifying existing properties easy:
class C(object):
    @property
    def x(self): return self.__x
    @x.setter
    def x(self, value): self.__x = value
    @x.deleter
    def x(self): del self.__x
msg57388 - (view) Author: Guido van Rossum (gvanrossum) * (Python committer) Date: 2007-11-12 01:09
I would use _x instead of __x. Otherwise looks good.
msg57389 - (view) Author: Christian Heimes (christian.heimes) * (Python committer) Date: 2007-11-12 01:16
Applied in r58935 (trunk)
History
Date User Action Args
2022-04-11 14:56:28adminsetgithub: 45769
2007-11-12 01:16:06christian.heimessetstatus: open -> closed
resolution: fixed
messages: + msg57389
2007-11-12 01:09:50gvanrossumsetmessages: + msg57388
2007-11-11 23:23:43christian.heimescreate