Python Tutorial: Count Function calls with the help of a Metaclass

Use Cases for Metaclasses


Unfortunately, this chapter is not available for Python2.x. But there is Python 3 version available.

We recommend to continue with our chapter "Python3: Count Function Calls" of our Python3 tutorial. "Counting Function Calls" is a great use case for metaclasses.