What is Monkey Patching? | Python Interview Questions | MySirG.com
Vložit
- čas přidán 12. 09. 2024
- Python Interview Question Series for campus placement preparation, job interviews and concept building. MySirG bring this series in collaboration with Newton school.
--------------------------------------Newtonschool.co------------------------------------------
Know more about Newton School: bit.ly/newtons...
Register for full-stack course: bit.ly/RegisterNS
Check out Newton School Launchpad: bit.ly/NSlaunc...
Register on Newton School Career Launchpad: bit.ly/career-...
Know more about Newton School Career Launchpad: bit.ly/NScaree...
--------------------------------------Newtonschool.co------------------------------------------
Connect with me
------------------------------
MySirG Instagram- / mysirg
Shahid Instagram- / shahidify
My Twitter- / @sshukla_manit
MySirG Facebook- / mysirg
How to access Free or Paid learning videos?
-----------------------------------------------------------------------
Visit: MySirG.com
Visit: premium.mysirg...
Most Valued course- Python for beginners, Javascript in depth
How to join coaching in Bhopal?
---------------------------------------------------
Visit saurabhshuklacl...
Popular Searches
----------------------------
Python by Saurabh Shukla Sir
Python by Saurabh Sir
Javascript
GUI Python
Web Python
Full Stack development
C Language
C++ Language
Data Structure
PHP-MySQL
DBMS
Java
Android
Like, Comments, Share and SUBSCRIBE
Sir plz gives more interview questions and your simplely describe answers in this series
I don't know why people dislike good videos.
beacuse of this fake newton school sponser
First one who watch it
Thankyou so much for this video
Thanks sirji
Q2 can we 🐒 patch the module function in my utility module?
Q3 difference between 🐒 patch , function and methods overriding?
Sir can you please let me know is it the same concept in C++ with virtual functions and vptr ???
Is it dynamic polymorphism in python???
I want job with tarning once more in python language
Best explanation of monkey patching
Nice perception.
Sir Newton school me admission kaise le sir please ispe uk video banaaiye
I have a question regarding the example taken in the video :
Q1 that if suppose a class is defined in some third party python module . And I need to override the functionality of get_data by calling my function in other code created override module . Then is it possible that everytime my function get call inspire of the class get_data method.
Q2 can we do 🐒 patch a function.
>>> import math
>>> math.factorial(5)
120
>>> def factorial():
print('My Function')
>>> math.factorial = factorial
>>> math.factorial()
My Function
>>> math.factorial(5)
Traceback (most recent call last):
File "", line 1, in
math.factorial(5)
TypeError: factorial() takes 0 positional arguments but 1 was given
>>>
Yes absolutely
@@KartikSir_ how to override a class method in the Django project using 🐒 patching
Very good video.
Is all programing language are same data structure? Please reply me
Yes Sir
Not clarity
Zubair Usmani pakistan