3 ms·Monkey patching python modules is waaaaay more straightforward than this. setattr(mod, name, new_func)by mkoubaa 1y agoMonkey patching python modules is waaaaay more straightforward than this. setattr(mod, name, new_func)