Monkey-patching is a concept popular in Python and many other dynamic programming languages. But most explanations I have seen seem to lack covering the real essence of monkey-patching and the benefits.
Chapters / Timeline
--------------------------------
00:00 - Introduction
00:36 - Real-word example of monkey-patching
03:31 - Monkey-patching in python
06:03 - Example of monkey-patching builtin print() function
07:25 - Traditional (Python 2) uses of monkey-patching
10:00 - Monkey-patching module members (example)
12:40 - Monkey-patching threads to processes - An example of monkey-patching within the Python standard library
19:47 - Monkey-patching builtin ElementTree XML parser with lxml parser
20:50 - More example use cases for monkey-patching
25:54 - An example of monkey-patching using the gevent framework
32:43 - Ending notes
In this video, I have attempted to provide a simple explanation with more practical examples demonstrating the actual use cases. Hope you find this video useful.
Please comment on what you think about this video, and feel free to ask questions if you have any doubts or need more clarification.