Python Everyday 06: monkey patching

Table of Content

Monkey patching is reopening the existing classes or methods in class at runtime and changing the behavior, it's very useful when you test some code. Here is a simple example: