Monkey Patching

Simply put, Monkey Patching is the dynamic replacement of attributes at runtime. Monkey Patching can only be done in dynamic languages, of which Python is a good example. In Python, patching module (or class) variables or functions is simple, because Python doesn’t create protected or private entities– and in most Read more…