|
|
|
|
|
by dragonwriter
1688 days ago
|
|
> It's called 'monkey patching' and python does make it particularly easy Inheritance and overriding method in the descendant class is cleaner, and more broadly supported. When you need monkey patching, sure, its nice that most modern dynamic OO languages support it quite naturally. (Ruby even supports scoped monkey patching via refinements, as well as classic monkey patching and per-object overrides.) But this is not at all unique to Python. |
|