1

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 1

1

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.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.