sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #55281
[Bug 1884204] Re: What is monkey patching in Python?
** Changed in: sikuli
Status: New => Invalid
** Description changed:
- # monkeyy.py
- class X:
- def func(self):
- print "func() is being called"
- The above module (monkeyy) is used to change the behavior of a function at the runtime as shown below:
-
- import monkeyy
- def monkey_f(self):
- print "monkey_f() is being called"
- # replacing address of “func” with “monkey_f”
-
- monkeyy.X.func = monkey_f
- obj = monk.X()
- # calling function “func” whose address got replaced
- # with function “monkey_f()”
-
- obj.func()
-
- Visit here for in-depth knowledge: https://intellipaat.com/blog/tutorial
- /python-tutorial/
+ spam
** Summary changed:
- What is monkey patching in Python?
+ spam
--
You received this bug notification because you are a member of Sikuli
Drivers, which is subscribed to Sikuli.
https://bugs.launchpad.net/bugs/1884204
Title:
spam
Status in Sikuli:
Invalid
Bug description:
spam
To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/1884204/+subscriptions
References