|
|
|
|
|
by o11c
242 days ago
|
|
The import limitation seems to make this not useful for me. Usually when I am monkeypatching, it's because some code I do not control has a (possibly dynamic) import of the "buggy" module under another name, so I need to make my changes visible under the original name. If I control all the imports I can usually subclass things myself just fine. |
|
This seems to explicitly handle the case you are interested in - automatically updating library-internal references to the lower to instead use the upper?