Re: Behaviour of classes (tired of writing too much)

2006-09-11 Thread Steve Holden
[EMAIL PROTECTED] wrote: > How do I catch any reference to an instance of a class, i.e., I want to > run some code as soon as an instance of a class is used in any way. > (and I don't want to define all of __add__, __ge__ etc etc etc etc etc) > > The reason for the question is that I want to simpl

Re: Behaviour of classes (tired of writing too much)

2006-09-11 Thread Brian Quinlan
[EMAIL PROTECTED] wrote: > How do I catch any reference to an instance of a class, i.e., I want to > run some code as soon as an instance of a class is used in any way. > (and I don't want to define all of __add__, __ge__ etc etc etc etc etc) What do you mean by "used in any way"? Which of these a

Behaviour of classes (tired of writing too much)

2006-09-11 Thread mpn
How do I catch any reference to an instance of a class, i.e., I want to run some code as soon as an instance of a class is used in any way. (and I don't want to define all of __add__, __ge__ etc etc etc etc etc) The reason for the question is that I want to simplify the Message Passing Interface (