[issue1428] Update to property.__doc__

Christian Heimes report at bugs.python.org
Mon Nov 12 00:23:43 CET 2007


New submission from Christian Heimes:

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

----------
assignee: gvanrossum
components: Interpreter Core
files: property_docstring.patch
keywords: patch
messages: 57385
nosy: gvanrossum, tiran
priority: low
severity: normal
status: open
title: Update to property.__doc__
type: rfe
versions: Python 2.6, Python 3.0
Added file: http://bugs.python.org/file8735/property_docstring.patch

__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue1428>
__________________________________
-------------- next part --------------
A non-text attachment was scrubbed...
Name: property_docstring.patch
Type: text/x-diff
Size: 826 bytes
Desc: not available
Url : http://mail.python.org/pipermail/python-bugs-list/attachments/20071111/a0dc3d21/attachment.patch 


More information about the Python-bugs-list mailing list