Skip to content
Better HN
Top
New
Best
Ask
Show
Jobs
Search
⌘K
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
roh26it
1y ago
2 comments
Share
2 comments
default
newest
oldest
patrakov
1y ago
Yes, if this is documented and not done by default. Example:
https://www.gevent.org/api/gevent.monkey.html
brodouevencode
1y ago
Implementing like gevent did is also preferable, where you can patch some or all as arguments to the patch call.
j
/
k
navigate · click thread line to collapse