No post body was provided.
Ask HN: Is function patching in Python acceptable for a library to do?
1–3 of 3 posts
Re: Ask HN: Is function patching in Python acceptable for a library to do?
#2Yes, if this is documented and not done by default. Example: https://www.gevent.org/api/gevent.monkey.html
Re: Ask HN: Is function patching in Python acceptable for a library to do?
#3Yes, if this is documented and not done by default. Example: https://www.gevent.org/api/gevent.monkey.html
Implementing like gevent did is also preferable, where you can patch some or all as arguments to the patch call.