New submission from Michal Liddle <[email protected]>:
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 <[email protected]>
<http://bugs.python.org/issue7374>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com