I read about this metaphor that objects use message passing while passing a message to another object. is it possible to capture/log such messages! This is for my learning purposes, but thought it would be necessary a handly tool for a provenance system!
1 Answer
You might want to look at AOP (Aspect Oriented Programming).
In essence it allows you to capture object events such method invocation and apply some logic to them. In your case it'd be just print out some traces.
Have a look at A Lightweight Approach to Aspect-Oriented Programming in Python, it should do what you need.