Re: [Orbit-python-list] orbit-python and __setattr__ overloading
Status: Inactive
Brought to you by:
tack
From: Roland M. <ma...@ec...> - 2001-01-30 18:53:10
|
Marcelo CB (2001-01-30 16:43:29 -0200) : > I was wondering if this is an expected behaviour, mostly because I > would like to overload __setattr__ to know when an attribute was > changed. I need this to control the persistency state of the class. I think I coded that sometime last summer. You just have to use the correct method names, namely _get_<attributename> and _set_<attributename>. Roland. -- Roland Mas C r ' s d a u e e ll r a u i r . -- Signatures à collectionner, série n°1, partie 1/3. |