Title: fset not working
Type: behavior Stage:
Components: None Versions: Python 2.5
Status: closed Resolution: wont fix
Dependencies: Superseder:
Assigned To: Nosy List: _doublep, georg.brandl, ryansturmer
Priority: normal Keywords:

Created on 2008-03-24 18:27 by ryansturmer, last changed 2008-03-24 19:04 by georg.brandl. This issue is now closed.

File name Uploaded Description Edit ryansturmer, 2008-03-24 18:27
Messages (3)
msg64427 - (view) Author: Ryan Sturmer (ryansturmer) Date: 2008-03-24 18:27
Using the attached module, There's an asymmetry between fget and fset in
my properties.  fget works fine, but fset isn't getting called.  I'm
fairly sure I'm creating the property correctly.  Try the following code:

a = EWAssayIntParam('myparam', 4)
a.value = 10

I've seen this same issue flare up and die out several times in the
tracker, is this a commonly made programming mistake rather than a bug?
msg64430 - (view) Author: Paul Pogonyshev (_doublep) Date: 2008-03-24 18:58
This is caused by EWAssayParam being an old-style class.  Dunno if it is
a bug in Python or not.
msg64431 - (view) Author: Georg Brandl (georg.brandl) * (Python committer) Date: 2008-03-24 19:04
It's not a bug in Python. Properties, being descriptors, only work fully
with new-style classes.
Date User Action Args
2008-03-24 19:04:49georg.brandlsetstatus: open -> closed
resolution: wont fix
messages: + msg64431
nosy: + georg.brandl
2008-03-24 18:58:23_doublepsetnosy: + _doublep
messages: + msg64430
2008-03-24 18:27:12ryansturmercreate