What is monkey patching in Python? | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
+ 4

What is monkey patching in Python?

11th Mar 2019, 6:49 AM
RISHABH MISHRA
RISHABH MISHRA - avatar
2 Respostas
11th Mar 2019, 2:52 PM
Hatsy Rei
Hatsy Rei - avatar
+ 4
Monkey patchingĀ is reopening the existing classes or methods in class at runtime and changing the behavior, which should be used cautiously, or you should use it only when you really need to. AsĀ PythonĀ is a dynamic programming language, Classes are mutable so you can reopen them and modify or even replace them. šŸ’šŸµ
11th Mar 2019, 8:35 AM
Better
Better - avatar