n Python, the term monkey patch only refers to dynamic modifications of a class or module at run-time.
Consider the below example:
We can then run the monkey-patch testing like this:
The output will be as below:
As we can see, we did make some changes in the behavior of f() in MyClass using the function we defined, monkey_f(), outside of the module m.
Skills PythonQualifications :- High School - SLV, College/University - Graphic Era Deemed Univ University,
I started my Professional Journey in 2006 with one of the Web Development Company in Bangalore and my 1st framework was "Ruby on Rail" as Web development and delivered around 5+ Projects using this platform. Then came another dimension as JEE/Sturst framework, Gradually I realized that I want to build something on my own and give my passion and energy on creating something different a