Properties vs. get/set-methods

Mark McEahern marklists at mceahern.com
Fri Aug 23 08:58:58 EDT 2002


[Michael 'Mickey' Lauer]
> Hmm... sure, I already stated that involving a second attribute
> is needed to save state. My original question about the real
> usage scenario for properties remains though.

I'm sorry, but I don't understand your question.  Properties seem very
straightforward.  Can you help me understand your question by restating it?
You want to save state and be able to intercept the getting and setting of a
value.  I showed you how to do that.  So what's left?

Cheers,

// mark

-





More information about the Python-list mailing list