Why doesnt __getattr__ with decorator dont call __get_method in decorator

7stud bbxx789_05ss at yahoo.com
Wed Mar 28 12:15:08 EDT 2007


On Mar 28, 8:28 am, "glomde" <tbr... at yahoo.com> wrote:
> Hi,
>
> I tried to write a decorator for that should be for methods but for
> some reasons
> it doens seem to work when you try to do it on the __getattr__ method
> in a class.
> Could anybody give some hints why this is?
>

All you have to do is decorator should methods write be for reason it
works with class __getattr__ in!




More information about the Python-list mailing list