Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Ask HN: Is function patching in Python acceptable for a library to do? | Better HN
Ask HN: Is function patching in Python acceptable for a library to do?
3 points · by
roh26it
· 2y ago · 2 comments
Comments
[–]
patrakov
2y ago
Yes, if this is documented and not done by default. Example:
https://www.gevent.org/api/gevent.monkey.html
[–]
brodouevencode
2y ago
Implementing like gevent did is also preferable, where you can patch some or all as arguments to the patch call.