From: Frank Tobin <ftobin@ne...> - 2001-10-31 02:01:15
Juergen Hermann, at 00:58 +0100 on 2001-10-31, wrote:
Sure. I'll work on the project structure this weekend, so you can
reasonably add things.
From the looks of things, initially I'll be able to give aspect access
(before, after, around) to specific methods (done), and class instance
constructions/destructions (working on). Unfortunately, setattr/getattr
access cannot be achieved, since according to the Language Reference,
__*attr__ methods are cached when the class is read in, so they can't be
modified during runtime (which is my means of access).
Stage two would be to get method-matching regexes, so you can say things
like "run F before all methods of class C that match '^get_' ".
Frank Tobin http://www.neverending.org/~ftobin/