Monkeypatching: Retrieving data from the parent scope
|
22 October 2020
Now that I've covered the basics of monkeypatching, it's time to dig deeper.
When you monkeypatch a function, you're limited to accessing the function's parameters and other data in its global scope. This article is an introduction to one way that you could access data in the calling function's local scope.