[Tutor] Intercepting methods calls

Marilyn Davis marilyn at deliberate.com
Wed Jun 4 07:41:49 CEST 2008


On Tue, June 3, 2008 10:16 pm, Alan Gauld wrote:

> "Laureano Arcanio" <listas.condhor at gmail.com> wrote
>
>
>> Is there any way to intercept calls to methods ? like the
>> __setattribute__
>> medthod does ?
>
> There are several variations on how to do that kind of thing.
> Can you give us some more background on what you are
> trying to achieve that makes you need to do that?

Great question, Alan.  But, whatever the answer, I'd like to see the
variations listed, if you have time.

Showing my ignorance, I can only think of inheritance/overriding.

Or maybe I don't understand the question.

Marilyn Davis

>
> Then we can offer advice as to the best approach.
>
>
> Alan G
>
>
>
> _______________________________________________
> Tutor maillist  -  Tutor at python.org
> http://mail.python.org/mailman/listinfo/tutor




More information about the Tutor mailing list