monkey patching __code__
Sven R. Kunze
srkunze at mail.de
Sun Mar 20 12:46:22 EDT 2016
On 19.03.2016 00:58, Matt Wheeler wrote:
> I know you have a working solution now with updating the code &
> defaults of the function, but what about just injecting your function
> into the modules that had already imported it after the
> monkeypatching?
>
> Seems perhaps cleaner, unless you'd end up having to do it to lots of modules...
Why do you consider it cleaner?
Best,
Sven
More information about the Python-list
mailing list