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: New @spam.getter property syntax modifies the property in place
Type: Stage:
Components: Interpreter Core Versions: Python 3.0, Python 2.6
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: christian.heimes Nosy List: christian.heimes, gvanrossum
Priority: high Keywords: patch

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

Files
File name Uploaded Description Edit
py3k_copy_property.patch christian.heimes, 2007-12-14 00:26
Messages (2)
msg58598 - (view) Author: Christian Heimes (christian.heimes) * (Python committer) Date: 2007-12-14 00:26
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.
msg58607 - (view) Author: Christian Heimes (christian.heimes) * (Python committer) Date: 2007-12-14 02:02
Fixed in r59488
History
Date User Action Args
2022-04-11 14:56:28adminsetgithub: 45961
2008-01-06 22:29:44adminsetkeywords: - py3k
versions: Python 2.6, Python 3.0
2007-12-14 02:02:11christian.heimessetstatus: open -> closed
resolution: fixed
messages: + msg58607
2007-12-14 00:26:26christian.heimescreate