|
|
|
|
|
by lost-theory
5045 days ago
|
|
First off, I really like your posts and books. I learned advice / AOP at a previous job and really enjoy using it and applying it to new things. Your writing on the subject is great! The only thing python does not like is multi-line lambdas. You can target a lambda with decorators, just like you can target any callable. I'm not sure if I correctly parsed what you mean by "a function being called with another function as its argument as an expression within an instance method definition", but I'm pretty sure python can do that. Here is some demonstration code (see RaganwaldWidgetViewThree): https://gist.github.com/3495990 And finally here is the translation of the before/after/etc. method combinators: https://gist.github.com/3495985 But I might have misunderstood waitLevel, can you explain what it is for? |
|