[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 = 3

"get" is printed twice (expected once?), "set" is printed only once (as

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>

More information about the Python-bugs-list mailing list