News for hackers. Stuff that matters.
Re:Ask HN: Is function patching in Python acceptable for a l... by patrakov on Friday August 23, 2024 @11:01AM (#41329597)
Yes, 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 l... by brodouevencode on Friday August 23, 2024 @11:52AM (#41330020)
Implementing like gevent did is also preferable, where you can patch some or all as arguments to the patch call.