Python decorators are a (limited) form of AOP: they let you transform functions in-place to implement cross-cutting concerns. Aspectlib allows you to do a more intrusive form of AOP.
Re:Write Libraries, Not Frameworks
by louiskottmann on Saturday May 09, 2020 @06:55AM
(#23123681)
Decorators and AOP are very similar concepts in my opinion then, if you prefer.
look at https://python-aspectlib.readthedocs.io/en/latest/ for an example of using aspect with python