Problem with Property

none "jay\" at (none)
Sat Feb 25 11:13:41 EST 2006


André Malo wrote:
> * none wrote:
> 
> 
>>classMyObject:
> 
> [...]
> 
> 
>>As you can see, the _getProperty() method gets called properly when I do
>>  'o.value'  but 'o.value = 123' does not seem to use the property
>>stucture.   I can't figure out why 'o.value=123' does not call
>>_setProperty()
>>
>>Any ideas?
> 
> 
> property only works as intended with new style classes.

duh.. I changed that to
	class MyObject(object):
and it worked fine

Thanks

Take care,
Jay



More information about the Python-list mailing list