[issue1620] New @spam.getter property syntax modifies the property in place

Christian Heimes report at bugs.python.org
Fri Dec 14 01:26:26 CET 2007


New submission from Christian Heimes:

As reported by Duncan Booth at
http://permalink.gmane.org/gmane.comp.python.general/551183 the new
@spam.getter syntax modifies the property in place but it should create
a new one.

The patch is the first draft of a fix. I've to write unit tests to
verify the patch. It copies the property and as a bonus grabs the
__doc__ string from the getter if the doc string initially came from the
getter as well.

----------
assignee: tiran
components: Interpreter Core
files: py3k_copy_property.patch
keywords: patch, py3k
messages: 58598
nosy: gvanrossum, tiran
priority: high
severity: normal
status: open
title: New @spam.getter property syntax modifies the property in place
versions: Python 2.6, Python 3.0
Added file: http://bugs.python.org/file8947/py3k_copy_property.patch

__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue1620>
__________________________________
-------------- next part --------------
A non-text attachment was scrubbed...
Name: py3k_copy_property.patch
Type: text/x-diff
Size: 4591 bytes
Desc: not available
Url : http://mail.python.org/pipermail/python-bugs-list/attachments/20071214/68acf5c2/attachment.patch 


More information about the Python-bugs-list mailing list