
report at bugs
Nov 22, 2009, 12:14 AM
Post #1 of 3
(109 views)
Permalink
|
|
[issue7374] Property accessor/getter called twice
|
|
New submission from Michal Liddle <michael [at] liddle>: 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> <http://bugs.python.org/issue7374> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com
|