[New-bugs-announce] [issue7374] Property accessor/getter called twice
Michal Liddle
report at bugs.python.org
Sun Nov 22 09:14:59 CET 2009
New submission from Michal Liddle <michael at liddle.net.nz>:
The following snippet demonstrates the problem:
-------------------------------------
class Test(object):
def get(self):
print "get"
def set(self, v):
print "set"
test = property(get, set)
t = Test()
t.test
t.test = 3
-----------------------------------
"get" is printed twice (expected once?), "set" is printed only once (as
expected)
----------
messages: 95595
nosy: mliddle
severity: normal
status: open
title: Property accessor/getter called twice
type: behavior
versions: Python 2.5
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue7374>
_______________________________________
More information about the New-bugs-announce
mailing list