Explore the concept of monkey-patching in Python through this informative conference talk from EuroPython 2016. Discover the basics of dynamic class and module modification at runtime, and examine both the potential pitfalls and powerful applications of this technique. Learn about real-world examples of monkey-patching in projects like gevent, as well as its use in testing and debugging tools such as PyCharm and PyDev. Compare Python's approach to monkey-patching with that of Ruby, and ultimately evaluate whether this practice is a mere trick or a valuable tool in a developer's arsenal. Gain insights to help determine when and how to effectively use monkey-patching in your own Python projects.
Overview
Syllabus
Elizaveta Shashkova - Monkey-patching: a magic trick or a powerful tool?
Taught by
EuroPython Conference